summaryrefslogtreecommitdiff
path: root/hw/bsp/espressif/components/tinyusb_src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-25 20:23:40 +0700
committerhathach <[email protected]>2024-04-25 20:23:40 +0700
commit2e995d7cf4b2971e3ca7167a097b99832c8d61ce (patch)
tree7895e6ba2a2e4f34b42af14930dea5be698a9e3b /hw/bsp/espressif/components/tinyusb_src
parentfc91e15488523548b6eafa63a3cb6190c1ba72d8 (diff)
adding support for esp32 for use with max3421e host
Diffstat (limited to 'hw/bsp/espressif/components/tinyusb_src')
-rw-r--r--hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt12
1 files changed, 1 insertions, 11 deletions
diff --git a/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt b/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt
index abe276910..8bdb3802e 100644
--- a/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt
+++ b/hw/bsp/espressif/components/tinyusb_src/CMakeLists.txt
@@ -5,17 +5,7 @@ set(includes_public)
set(compile_options)
set(tusb_src "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../src")
-if(target STREQUAL "esp32s3")
- set(tusb_mcu "OPT_MCU_ESP32S3")
-elseif(target STREQUAL "esp32s2")
- set(tusb_mcu "OPT_MCU_ESP32S2")
-else()
- # CONFIG_TINYUSB dependency has been guaranteed by Kconfig logic,
- # So it's not possible that cmake goes here
- message(FATAL_ERROR "TinyUSB is not support on ${target}.")
- return()
-endif()
-
+string(TOUPPER OPT_MCU_${target} tusb_mcu)
list(APPEND compile_definitions
CFG_TUSB_MCU=${tusb_mcu}
CFG_TUSB_OS=OPT_OS_FREERTOS