diff options
| author | Howard Su <[email protected]> | 2023-01-07 07:01:14 +0000 |
|---|---|---|
| committer | Howard Su <[email protected]> | 2023-01-18 02:30:05 +0000 |
| commit | eb7aacb51f00a55867304d6217dcaaf39f7019c0 (patch) | |
| tree | cb9f2a63297fed23495bba5d93ad11a798eecfa0 | |
| parent | fa9d19027be7caa8dda2ab81ce8fda8b7f586a58 (diff) | |
Allow config OS for RP2040
| -rw-r--r-- | hw/bsp/rp2040/family.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index 5dba9dc39..350e8bc65 100644 --- a/hw/bsp/rp2040/family.cmake +++ b/hw/bsp/rp2040/family.cmake @@ -23,6 +23,10 @@ if (NOT TARGET _rp2040_family_inclusion_marker) set(PICO_TINYUSB_PATH ${TOP}) endif() + if (NOT TINYUSB_OPT_OS) + set(TINYUSB_OPT_OS OPT_OS_PICO) + endif() + #------------------------------------ # Base config for both device and host; wrapped by SDK's tinyusb_common #------------------------------------ @@ -54,7 +58,7 @@ if (NOT TARGET _rp2040_family_inclusion_marker) target_compile_definitions(tinyusb_common_base INTERFACE CFG_TUSB_MCU=OPT_MCU_RP2040 - CFG_TUSB_OS=OPT_OS_PICO + CFG_TUSB_OS=${TINYUSB_OPT_OS} #CFG_TUSB_DEBUG=${TINYUSB_DEBUG_LEVEL} ) |
