embkernel
 All Classes Functions Variables Typedefs Groups Pages
RtosMacros.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
8 #ifndef RTOS_MACROS_HPP_
9 #define RTOS_MACROS_HPP_
10 
11 #include "RtosCfg.hpp"
12 #include "RtosPortMacros.hpp"
13 #include "LibMacros.hpp"
14 #include "LibLog.hpp"
15 
16 #if RTOS_CFG_DEBUG_ENABLE
17 #define RTOS_DEBUG LIB_DEBUG
18 #define RTOS_ASSERT LIB_ASSERT
19 #else
20 #define RTOS_DEBUG(level, string, ...)
21 #define RTOS_ASSERT(condition)
22 #endif
23 extern void __error__(const char *fileName, unsigned long line);
24 
25 #endif /* RTOS_MACROS_HPP_ */
26