embkernel
 All Classes Functions Variables Typedefs Groups Pages
DrvMacros.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef DRV_MACROS_HPP_
7 #define DRV_MACROS_HPP_
8 
9 #include "DrvCfg.hpp"
10 #include "LibMacros.hpp"
11 #include "LibLog.hpp"
12 
13 #if DRV_CFG_DEBUG_ENABLE
14 #define DRV_DEBUG LIB_DEBUG
15 #define DRV_ASSERT LIB_ASSERT
16 #else
17 #define DRV_DEBUG(level, string, ...)
18 #define DRV_ASSERT(condition)
19 #endif
20 extern void __error__(const char *fileName, unsigned long line);
21 
22 #endif /* DRV_MACROS_HPP_ */