diff options
| author | hathach <[email protected]> | 2024-09-27 15:32:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-09-30 11:53:19 +0700 |
| commit | 87f199330405f0a51f8ad4b3b8b2d69c9a21ac3e (patch) | |
| tree | db9ebf8b7c5fb96158c777d7893580b5c1f6823c /hw/bsp/espressif/components | |
| parent | 67e5577b428e70878d99c4f83039cef020a272cb (diff) | |
esp32p4 use port0 as fs, port1 as highspeed
Diffstat (limited to 'hw/bsp/espressif/components')
| -rw-r--r-- | hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt b/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt index 8bdb3802e..26c7e4030 100644 --- a/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt +++ b/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt @@ -9,6 +9,9 @@ string(TOUPPER OPT_MCU_${target} tusb_mcu) list(APPEND compile_definitions CFG_TUSB_MCU=${tusb_mcu} CFG_TUSB_OS=OPT_OS_FREERTOS + # EXAMPLE port selection: port0 is fullspeed, port1 is highspeed + BOARD_TUD_RHPORT=${TUD_PORT} + BOARD_TUD_MAX_SPEED=$<IF:${TUD_PORT},OPT_MODE_HIGH_SPEED,OPT_MODE_FULL_SPEED> ) list(APPEND srcs |
