diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-19 20:06:25 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-19 20:09:20 -0600 |
commit | a9a35f9d3b19724640fcb0b0cec057f95c8c6328 (patch) | |
tree | b59f3e151aaadcd36647278cd782310553b0b078 /tusb_config.h | |
parent | 75fcb1ef5db5a2d6daaf02a0a02de037f5eaedff (diff) |
fixes
Diffstat (limited to 'tusb_config.h')
-rw-r--r-- | tusb_config.h | 4 |
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 |