summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraham sanderson <[email protected]>2021-05-30 18:37:51 -0500
committergraham sanderson <[email protected]>2021-05-30 18:38:01 -0500
commitedbccb5e19692a95d72f0467901818a0e1cf7251 (patch)
treec10ba2752005fb8ed7d673811be5c0793e5249f1
parent3973ec4b5e457aecf742da47dac3c91d1a143865 (diff)
don't override CFG_TUSB_OS in cdc_dual_ports example
-rw-r--r--examples/device/cdc_dual_ports/src/tusb_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/device/cdc_dual_ports/src/tusb_config.h b/examples/device/cdc_dual_ports/src/tusb_config.h
index 7db520dd1..c7e87bf67 100644
--- a/examples/device/cdc_dual_ports/src/tusb_config.h
+++ b/examples/device/cdc_dual_ports/src/tusb_config.h
@@ -64,8 +64,9 @@
#error "Incorrect RHPort configuration"
#endif
-// This example doesn't use an RTOS
+#ifndef CFG_TUSB_OS
#define CFG_TUSB_OS OPT_OS_NONE
+#endif
// CFG_TUSB_DEBUG is defined by compiler in DEBUG build
// #define CFG_TUSB_DEBUG 0