commit | ce8fa7e64604e44a3f77cecfd5bc046cf64c9344 | [log] [tgz] |
---|---|---|
author | Christina Quast <chrysh.ng+git@gmail.com> | Fri Mar 13 13:09:51 2015 +0100 |
committer | Christina Quast <chrysh.ng+git@gmail.com> | Fri Mar 13 13:09:51 2015 +0100 |
tree | 9f763dd8ce5e708ba29c60b8a018da4bf1f2bf3b | |
parent | 23bb831cfb2f871f9b2640f318ab078d4fe73d4b [diff] |
Add optional TRACE_*_WP switch
diff --git a/sam3s_example/Makefile b/sam3s_example/Makefile index 27f63e8..c37852d 100644 --- a/sam3s_example/Makefile +++ b/sam3s_example/Makefile
@@ -52,6 +52,8 @@ #FIXME: Remove this variable NOAUTOCALLBACK=no +#CFLAGS+=-DUSB_NO_DEBUG=1 + # Optimization level, put in comment for debugging OPTIMIZATION = -O0
diff --git a/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h b/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h index 8149eda..5ae2f0e 100644 --- a/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h +++ b/sam3s_example/atmel_softpack_libraries/libchip_sam3s/include/trace.h
@@ -217,6 +217,13 @@ #endif +#if defined(USB_NO_DEBUG) + #undef TRACE_DEBUG_WP + #define TRACE_DEBUG(...) { } + + #undef TRACE_INFO_WP + #define TRACE_INFO_WP(...) { } +#endif /** * Exported variables