添加 USB 主机、BLE 和 Socket 数据端口驱动程序:
- 支持大容量存储类(MSC)的 USB 主机驱动程序 - BLE SPP(串行端口配置文件)客户端和服务器实现 - Socket(UDP/TCP)数据端口驱动程序 - 相关的 shell 接口用于配置和测试
This commit is contained in:
@@ -3,6 +3,11 @@ list(APPEND incs "../components/system/include")
|
||||
list(APPEND incs "../components/system/source")
|
||||
list(APPEND incs "../components/system/source/k_kit")
|
||||
list(APPEND incs "../components/system/source/shell")
|
||||
list(APPEND incs "drivers/data_port/usb-host")
|
||||
list(APPEND incs "drivers/data_port/ble_spp")
|
||||
list(APPEND incs "drivers/data_port/socket_inet")
|
||||
|
||||
|
||||
|
||||
list(APPEND srcs "app_main.c")
|
||||
list(APPEND srcs "app_info.c")
|
||||
@@ -17,8 +22,38 @@ list(APPEND srcs "config/board_config.c")
|
||||
list(APPEND srcs "config/app_config.c")
|
||||
list(APPEND srcs "utils/crc.c")
|
||||
|
||||
if(CONFIG_BUILD_BLE)
|
||||
list(APPEND srcs "drivers/data_port/ble_spp/ble_spp_server.c")
|
||||
list(APPEND srcs "drivers/data_port/ble_spp/ble_spp_server_shell.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_BUILD_WIFI)
|
||||
list(APPEND srcs "drivers/data_port/socket_inet/wifi.c")
|
||||
list(APPEND srcs "drivers/data_port/socket_inet/wifi_shell.c")
|
||||
list(APPEND srcs "drivers/data_port/socket_inet/socket_inet.c")
|
||||
list(APPEND srcs "drivers/data_port/socket_inet/socket_inet_server.c")
|
||||
list(APPEND srcs "drivers/data_port/socket_inet/socket_inet_server_shell.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_IDF_TARGET_ESP32S3)
|
||||
list(APPEND srcs "drivers/data_port/usb-host/usbport.c")
|
||||
list(APPEND srcs "drivers/data_port/usb-host/msc/diskio_usb.c")
|
||||
list(APPEND srcs "drivers/data_port/usb-host/msc/msc_host_vfs.c")
|
||||
list(APPEND srcs "drivers/data_port/usb-host/msc/msc_host.c")
|
||||
list(APPEND srcs "drivers/data_port/usb-host/msc/msc_scsi_bot.c")
|
||||
endif()
|
||||
|
||||
idf_component_register(
|
||||
INCLUDE_DIRS ${incs}
|
||||
SRCS ${srcs}
|
||||
REQUIRES driver nvs_flash
|
||||
REQUIRES
|
||||
driver
|
||||
nvs_flash
|
||||
app_update
|
||||
esp_wifi
|
||||
mbedtls
|
||||
bt
|
||||
usb
|
||||
fatfs
|
||||
vfs
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user