Skip to content

Commit 5bfbcfc

Browse files
authored
Added condition to only use tinyusb as needed (espressif#5123)
* Added condition to only use tinyusb as needed * Removed esp32c3 from targets supporting tinyusb
1 parent 7a53c2d commit 5bfbcfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,11 @@ set(includedirs
161161
set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS})
162162
set(priv_includes cores/esp32/libb64)
163163
set(requires spi_flash mbedtls mdns esp_adc_cal)
164-
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt arduino_tinyusb main)
164+
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt main)
165165

166+
if(IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
167+
list(APPEND priv_requires arduino_tinyusb)
168+
endif()
166169
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
167170
list(APPEND priv_requires esp_https_ota)
168171
endif()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy