Skip to content

Commit 42e3a98

Browse files
authored
remove USB
1 parent 99803ed commit 42e3a98

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

CMakeLists.txt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ set(ARDUINO_ALL_LIBRARIES
9595
SPI
9696
Ticker
9797
Update
98-
USB
9998
WebServer
10099
WiFi
101100
Wire
@@ -149,17 +148,6 @@ set(ARDUINO_LIBRARY_Update_SRCS
149148
libraries/Update/src/Updater.cpp
150149
libraries/Update/src/HttpsOTAUpdate.cpp)
151150

152-
set(ARDUINO_LIBRARY_USB_SRCS
153-
libraries/USB/src/USBHID.cpp
154-
libraries/USB/src/USBMIDI.cpp
155-
libraries/USB/src/USBHIDMouse.cpp
156-
libraries/USB/src/USBHIDKeyboard.cpp
157-
libraries/USB/src/USBHIDGamepad.cpp
158-
libraries/USB/src/USBHIDConsumerControl.cpp
159-
libraries/USB/src/USBHIDSystemControl.cpp
160-
libraries/USB/src/USBHIDVendor.cpp
161-
libraries/USB/src/USBVendor.cpp)
162-
163151
set(ARDUINO_LIBRARY_WebServer_SRCS
164152
libraries/WebServer/src/WebServer.cpp
165153
libraries/WebServer/src/Parsing.cpp
@@ -206,7 +194,7 @@ set(includedirs variants/${CONFIG_ARDUINO_VARIANT}/ cores/esp32/ ${ARDUINO_LIBRA
206194
set(srcs ${CORE_SRCS} ${ARDUINO_LIBRARIES_SRCS})
207195
set(priv_includes cores/esp32/libb64)
208196
set(requires spi_flash esp_partition mbedtls wpa_supplicant esp_adc esp_eth http_parser)
209-
set(priv_requires fatfs nvs_flash app_update bootloader_support bt esp_hid usb ${ARDUINO_LIBRARIES_REQUIRES})
197+
set(priv_requires fatfs nvs_flash app_update bootloader_support bt esp_hid ${ARDUINO_LIBRARIES_REQUIRES})
210198

211199
idf_component_register(INCLUDE_DIRS ${includedirs} PRIV_INCLUDE_DIRS ${priv_includes} SRCS ${srcs} REQUIRES ${requires} PRIV_REQUIRES ${priv_requires})
212200

@@ -247,9 +235,6 @@ function(maybe_add_component component_name)
247235
endif()
248236
endfunction()
249237

250-
if(IDF_TARGET MATCHES "esp32s2|esp32s3" AND CONFIG_TINYUSB_ENABLED)
251-
maybe_add_component(arduino_tinyusb)
252-
endif()
253238
if(NOT CONFIG_ARDUINO_SELECTIVE_COMPILATION OR CONFIG_ARDUINO_SELECTIVE_ArduinoOTA)
254239
maybe_add_component(esp_https_ota)
255240
endif()

0 commit comments

Comments
 (0)