mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
There are a few TinyUSB CDC functions used for stdio that are currently replicated across a number of ports. Not surprisingly in a couple of cases these have started to diverge slightly, with additional features added to one of them. This commit consolidates a couple of key shared functions used directly by TinyUSB based ports, and makes those functions available to all. Signed-off-by: Andrew Leech <andrew@alelec.net>
25 lines
627 B
CMake
25 lines
627 B
CMake
if(NOT MICROPY_DIR)
|
|
get_filename_component(MICROPY_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../.. ABSOLUTE)
|
|
endif()
|
|
|
|
set(IDF_TARGET esp32s3)
|
|
|
|
set(SDKCONFIG_DEFAULTS
|
|
boards/sdkconfig.base
|
|
${SDKCONFIG_IDF_VERSION_SPECIFIC}
|
|
boards/sdkconfig.usb
|
|
boards/sdkconfig.ble
|
|
boards/sdkconfig.240mhz
|
|
boards/sdkconfig.spiram_sx
|
|
boards/sdkconfig.spiram_oct
|
|
${MICROPY_BOARD_DIR}/sdkconfig.board
|
|
)
|
|
|
|
set(MICROPY_SOURCE_BOARD
|
|
${MICROPY_BOARD_DIR}/board_init.c
|
|
${MICROPY_BOARD_DIR}/double_tap.c
|
|
${MICROPY_DIR}/shared/tinyusb/mp_usbd_cdc.c
|
|
)
|
|
|
|
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
|