20250529 同步自原始工程:

优化 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 版本和调整蓝牙默认发射功率。
This commit is contained in:
LokLiang
2025-05-29 18:05:20 +08:00
parent 499994b239
commit 176b2c49f6
17 changed files with 451 additions and 77 deletions

View File

@@ -62,7 +62,10 @@ typedef struct
#pragma pack(pop)
int usbport_init(void);
void usbport_deinit(void);
sb_data_port_t *usbport_bind(os_work_t *rx_resume_work);
void usbport_unbind(sb_data_port_t *port);
usbport_status_e usbport_get_state(void);
// 读取flash layout信息
@@ -111,3 +114,12 @@ void _usbh_pre_disconnect_deivce(void);
msc_file_info *msc_get_file_list(uint16_t *out_file_count, const excluding_file_item_t *excluding_files, uint8_t excluding_file_count);
msc_file_info *msc_get_cached_file_list(uint16_t *out_file_count);
typedef enum
{
USB_CONNECTED_CDC = 0,
USB_CONNECTED_DFU = 1,
USB_CONNECTED_MSC = 2,
USB_CONNECTED_UNKNOWN = 3,
} usb_connect_type_t;
usb_connect_type_t usbport_get_usb_type(void);