o add usb test
This commit is contained in:
12
poc/lpc2148_usb/target/usbdebug.h
Normal file
12
poc/lpc2148_usb/target/usbdebug.h
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
int printf(const char *format, ...);
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DBG printf
|
||||
#define ASSERT(x) if(!(x)){DBG("\nAssertion '%s' failed in %s:%s#%d!\n",#x,__FILE__,__FUNCTION__,__LINE__);while(1);}
|
||||
#else
|
||||
#define DBG(x ...)
|
||||
#define ASSERT(x)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user