mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-26 08:37:16 +00:00
Merge pull request #1860 from howard0su/pico_freertos
Allow config OS for RP2040
This commit is contained in:
commit
96d064e923
@ -23,6 +23,10 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
|
|||||||
set(PICO_TINYUSB_PATH ${TOP})
|
set(PICO_TINYUSB_PATH ${TOP})
|
||||||
endif()
|
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
|
# 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
|
target_compile_definitions(tinyusb_common_base INTERFACE
|
||||||
CFG_TUSB_MCU=OPT_MCU_RP2040
|
CFG_TUSB_MCU=OPT_MCU_RP2040
|
||||||
CFG_TUSB_OS=OPT_OS_PICO
|
CFG_TUSB_OS=${TINYUSB_OPT_OS}
|
||||||
#CFG_TUSB_DEBUG=${TINYUSB_DEBUG_LEVEL}
|
#CFG_TUSB_DEBUG=${TINYUSB_DEBUG_LEVEL}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user