File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,16 @@ def build(env):
113
113
tusb_config ["CFG_TUSB_MCU" ] = "OPT_MCU_RP2040"
114
114
env .copy ("tinyusb/src/portable/raspberrypi/rp2040/" , "portable/raspberrypi/rp2040/" )
115
115
116
+ # TinyUSB has a OS abstraction layer for FreeRTOS, but it is causes problems with modm
117
+ # if env.has_module(":freertos"):
118
+ # tusb_config["CFG_TUSB_OS"] = "OPT_OS_FREERTOS"
119
+ # env.copy("tinyusb/src/osal/osal_freertos.h", "osal/osal_freertos.h")
120
+
116
121
if env .has_module (":freertos" ):
117
- tusb_config [ "CFG_TUSB_OS" ] = "OPT_OS_FREERTOS "
118
- env . copy ( "tinyusb/src/osal/osal_freertos.h" , "osal/osal_freertos.h " )
119
- else :
120
- env .copy ("tinyusb/src/osal/osal_none.h" , "osal/osal_none.h" )
122
+ env . log . warning ( "TinyUSB in modm does not currently use the FreeRTOS abstraction layer "
123
+ " and is not thread-safe with FreeRTOS threads. " )
124
+
125
+ env .copy ("tinyusb/src/osal/osal_none.h" , "osal/osal_none.h" )
121
126
122
127
if env .has_module (":debug" ):
123
128
tusb_config ["CFG_TUSB_DEBUG_PRINTF" ] = "tinyusb_debug_printf"
You can’t perform that action at this time.
0 commit comments