Uses newer TinyUSB synopsys/dwc2 driver for esp32s2 and esp32s3 rather than the IDF tinyusb component. This allows re-use of other tinyusb integration code and features shared between ports. Signed-off-by: Andrew Leech <andrew@alelec.net>
14 lines
394 B
CMake
14 lines
394 B
CMake
# Set location of base MicroPython directory.
|
|
if(NOT MICROPY_DIR)
|
|
get_filename_component(MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR}/../../.. ABSOLUTE)
|
|
endif()
|
|
|
|
# Set location of the ESP32 port directory.
|
|
if(NOT MICROPY_PORT_DIR)
|
|
get_filename_component(MICROPY_PORT_DIR ${MICROPY_DIR}/ports/esp32 ABSOLUTE)
|
|
endif()
|
|
|
|
set(MICROPY_PY_TINYUSB ON)
|
|
|
|
include(${MICROPY_PORT_DIR}/esp32_common.cmake)
|