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