Add optional TRACE_*_WP switch

This commit is contained in:
Christina Quast 2015-03-13 13:09:51 +01:00
parent 23bb831cfb
commit ce8fa7e646
2 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,8 @@ TRACE_LEVEL = 1
#FIXME: Remove this variable
NOAUTOCALLBACK=no
#CFLAGS+=-DUSB_NO_DEBUG=1
# Optimization level, put in comment for debugging
OPTIMIZATION = -O0

View File

@ -217,6 +217,13 @@ extern void TRACE_CONFIGURE( uint32_t dwBaudRate, uint32_t dwMCk ) ;
#endif
#if defined(USB_NO_DEBUG)
#undef TRACE_DEBUG_WP
#define TRACE_DEBUG(...) { }
#undef TRACE_INFO_WP
#define TRACE_INFO_WP(...) { }
#endif
/**
* Exported variables