`hw\bsp` separate one family folder to esp32s2, esp32s3 add board specific board.cmake file to override board specific options(features) fix examples and test scripts to use new family approach
33 lines
1.0 KiB
CMake
33 lines
1.0 KiB
CMake
idf_component_register(SRCS "main.c" "usb_descriptors.c" "msc_disk.c"
|
|
INCLUDE_DIRS "."
|
|
REQUIRES freertos soc)
|
|
|
|
file(TO_NATIVE_PATH "${TOP}/hw/bsp/${FAMILY}/boards/${BOARD}/board.cmake" board_cmake)
|
|
|
|
if(EXISTS ${board_cmake})
|
|
include(${board_cmake})
|
|
endif()
|
|
|
|
idf_component_get_property( FREERTOS_ORIG_INCLUDE_PATH freertos ORIG_INCLUDE_PATH)
|
|
target_include_directories(${COMPONENT_TARGET} PUBLIC
|
|
"${FREERTOS_ORIG_INCLUDE_PATH}"
|
|
"${TOP}/hw"
|
|
"${TOP}/src"
|
|
)
|
|
|
|
target_sources(${COMPONENT_TARGET} PUBLIC
|
|
"${TOP}/src/tusb.c"
|
|
"${TOP}/src/common/tusb_fifo.c"
|
|
"${TOP}/src/device/usbd.c"
|
|
"${TOP}/src/device/usbd_control.c"
|
|
"${TOP}/src/class/cdc/cdc_device.c"
|
|
"${TOP}/src/class/dfu/dfu_rt_device.c"
|
|
"${TOP}/src/class/hid/hid_device.c"
|
|
"${TOP}/src/class/midi/midi_device.c"
|
|
"${TOP}/src/class/msc/msc_device.c"
|
|
"${TOP}/src/class/net/net_device.c"
|
|
"${TOP}/src/class/usbtmc/usbtmc_device.c"
|
|
"${TOP}/src/class/vendor/vendor_device.c"
|
|
"${TOP}/src/portable/espressif/esp32sx/dcd_esp32sx.c"
|
|
)
|