USB device-mode support (#613)
This commit is contained in:
@@ -2,11 +2,20 @@ cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
file(GLOB_RECURSE SOURCES "source/*.c**")
|
||||
|
||||
set(PRIV_REQUIRES_LIST "")
|
||||
if ("${IDF_TARGET}" STREQUAL "esp32s3" OR "${IDF_TARGET}" STREQUAL "esp32p4")
|
||||
# esp32_usb_device_controller.cpp / esp32_usb_hid_device.cpp include tinyusb.h - only
|
||||
# available on targets with TinyUSB device-mode support (mirrors Tactility/CMakeLists.txt's
|
||||
# own esp_tinyusb requirement).
|
||||
list(APPEND PRIV_REQUIRES_LIST esp_tinyusb)
|
||||
endif ()
|
||||
|
||||
idf_component_register(
|
||||
SRCS ${SOURCES}
|
||||
INCLUDE_DIRS "include/"
|
||||
PRIV_INCLUDE_DIRS "private/"
|
||||
REQUIRES TactilityKernel driver esp_adc esp_driver_i2c esp_lcd vfs fatfs esp_wifi esp_netif esp_event
|
||||
PRIV_REQUIRES ${PRIV_REQUIRES_LIST}
|
||||
)
|
||||
|
||||
if (DEFINED ENV{ESP_IDF_VERSION})
|
||||
|
||||
Reference in New Issue
Block a user