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"
|
|
|
|
)
|
|
|
|
|
2022-02-18 13:07:21 +07:00
|
|
|
target_compile_definitions(${COMPONENT_TARGET} PUBLIC
|
|
|
|
ESP_PLATFORM
|
|
|
|
)
|
|
|
|
|
2020-04-07 16:35:02 +07:00
|
|
|
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-10-05 12:32:07 +07:00
|
|
|
"${TOP}/src/class/net/ecm_rndis_device.c"
|
2021-08-03 11:28:44 -05:00
|
|
|
"${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"
|
2022-03-04 14:45:26 +07:00
|
|
|
"${TOP}/src/portable/synopsys/dwc2/dcd_dwc2.c"
|
2020-04-07 16:35:02 +07:00
|
|
|
)
|