Skip to content

Commit eb7aacb

Browse files
committed
Allow config OS for RP2040
1 parent fa9d190 commit eb7aacb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hw/bsp/rp2040/family.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
2323
set(PICO_TINYUSB_PATH ${TOP})
2424
endif()
2525

26+
if (NOT TINYUSB_OPT_OS)
27+
set(TINYUSB_OPT_OS OPT_OS_PICO)
28+
endif()
29+
2630
#------------------------------------
2731
# Base config for both device and host; wrapped by SDK's tinyusb_common
2832
#------------------------------------
@@ -54,7 +58,7 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
5458

5559
target_compile_definitions(tinyusb_common_base INTERFACE
5660
CFG_TUSB_MCU=OPT_MCU_RP2040
57-
CFG_TUSB_OS=OPT_OS_PICO
61+
CFG_TUSB_OS=${TINYUSB_OPT_OS}
5862
#CFG_TUSB_DEBUG=${TINYUSB_DEBUG_LEVEL}
5963
)
6064

0 commit comments

Comments
 (0)