2020-04-07 16:35:02 +07:00
|
|
|
idf_component_register(SRCS "main.c" "usb_descriptors.c"
|
|
|
|
INCLUDE_DIRS "."
|
|
|
|
REQUIRES freertos soc)
|
|
|
|
|
2021-04-16 13:37:14 +02:00
|
|
|
file(TO_NATIVE_PATH "${TOP}/hw/bsp/${FAMILY}/boards/${BOARD}/board.cmake" board_cmake)
|
2021-03-09 11:29:07 +01:00
|
|
|
|
2021-04-16 13:37:14 +02:00
|
|
|
if(EXISTS ${board_cmake})
|
|
|
|
include(${board_cmake})
|
2021-03-09 11:29:07 +01:00
|
|
|
endif()
|
|
|
|
|
2020-04-07 16:35:02 +07:00
|
|
|
target_include_directories(${COMPONENT_TARGET} PUBLIC
|
|
|
|
"${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"
|
2021-08-03 11:28:44 -05:00
|
|
|
"${TOP}/src/class/net/ecmrndis_device.c"
|
|
|
|
"${TOP}/src/class/net/ncm_device.c"
|
2020-04-07 16:35:02 +07:00
|
|
|
"${TOP}/src/class/usbtmc/usbtmc_device.c"
|
|
|
|
"${TOP}/src/class/vendor/vendor_device.c"
|
2021-04-16 13:37:14 +02:00
|
|
|
"${TOP}/src/portable/espressif/esp32sx/dcd_esp32sx.c"
|
2020-04-07 16:35:02 +07:00
|
|
|
)
|