Skip to content

Commit

Permalink
Added condition to only use tinyusb as needed (#5123)
Browse files Browse the repository at this point in the history
* Added condition to only use tinyusb as needed

* Removed esp32c3 from targets supporting tinyusb
  • Loading branch information
AronRubin committed May 18, 2021
1 parent 7a53c2d commit 5bfbcfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ set(includedirs
set(srcs ${CORE_SRCS} ${LIBRARY_SRCS} ${BLE_SRCS})
set(priv_includes cores/esp32/libb64)
set(requires spi_flash mbedtls mdns esp_adc_cal)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt arduino_tinyusb main)
set(priv_requires fatfs nvs_flash app_update spiffs bootloader_support openssl bt main)

if(IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
list(APPEND priv_requires arduino_tinyusb)
endif()
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
list(APPEND priv_requires esp_https_ota)
endif()
Expand Down

0 comments on commit 5bfbcfc

Please sign in to comment.