优化 CMakeLists.txt,增加 lib-out 目录的包含;修改 app_config.c 中的 LED 灯带开关变量名;更新 app_config.h,增加新的灯效模式和方向控制;更新 SBDEMO.h 中的默认设备名称;在 msc_host.c 中添加 USB 设备连接类型的处理;在 usbport.c 中增加 USB 连接类型的状态管理;更新 Kconfig,增加 LED 灯带的最大图层数和竞速模式选项;新增 spbelib_interface.h 文件,定义无线调参功能接口;删除不再使用的 components/CMakeLists.txt 文件;更新 misc.h,添加读取 MCU 身份信息的 MD5 值的函数声明;修改 tim.h 中的 drv_pwm_init 函数参数;更新 kk.h,增加默认工作队列的创建宏;优化 sh.c 中的命令行插入字符串逻辑;更新 sdkconfig 默认配置文件,升级 ESP-IDF 版本和调整蓝牙默认发射功率。
62 lines
2.0 KiB
CMake
62 lines
2.0 KiB
CMake
list(APPEND incs ".")
|
|
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 incs "lib-out")
|
|
|
|
|
|
|
|
list(APPEND srcs "app_main.c")
|
|
list(APPEND srcs "app_info.c")
|
|
list(APPEND srcs "console.c")
|
|
list(APPEND srcs "drivers/data_port/sb_data_port.c")
|
|
list(APPEND srcs "drivers/data_port/uart/uart_port.c")
|
|
list(APPEND srcs "drivers/ws2812_spi/ws2812_spi.c")
|
|
list(APPEND srcs "drivers/ws2812_spi/ws2812_spi_shell.c")
|
|
list(APPEND srcs "button/button.c")
|
|
list(APPEND srcs "button/multi_button.c")
|
|
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
|
|
spi_flash
|
|
nvs_flash
|
|
app_update
|
|
esp_wifi
|
|
mbedtls
|
|
bt
|
|
usb
|
|
fatfs
|
|
vfs
|
|
)
|