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