summaryrefslogtreecommitdiff
path: root/tusb_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'tusb_config.h')
-rw-r--r--tusb_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tusb_config.h b/tusb_config.h
index bc8243d..cb1ca3b 100644
--- a/tusb_config.h
+++ b/tusb_config.h
@@ -53,7 +53,11 @@ extern "C" {
#error CFG_TUSB_MCU must be defined
#endif
+// Conditional because it might be defined with `-D` on the command
+// line if `cmake -DCMAKE_BUILD_TYPE=Debug`.
+#ifndef CFG_TUSB_DEBUG
#define CFG_TUSB_DEBUG 0
+#endif
// USB DMA on some MCUs can only access a specific SRAM region with restriction on alignment.
// Tinyusb use follows macros to declare transferring memory so that they can be put