feat: 添加 BLE 管理功能与配置

- 新增 ble_manager.c 和 ble_manager.h 文件,提供 BLE 初始化和管理功能
- 更新 CMakeLists.txt,包含 ble_manager.c 以支持 BLE 功能
- 在 sdkconfig.defaults 中启用 BLE 和相关配置
- 更新 app_main.c,初始化 BLE 管理器
- 在 Kconfig.projbuild 中添加 BLE 设备名称配置选项
- 更新 board_config.h,定义 BLE 启用标志
This commit is contained in:
2026-07-01 22:35:09 +08:00
parent ebe62c5284
commit 6c348c600c
8 changed files with 305 additions and 0 deletions
+9
View File
@@ -1,2 +1,11 @@
CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n
CONFIG_ESP_LCD_TOUCH_CST816S_DISABLE_READ_ID=y
# App partition: BLE + WiFi + LVGL exceed default 1MB
CONFIG_PARTITION_TABLE_SINGLE_APP=n
CONFIG_PARTITION_TABLE_SINGLE_APP_LARGE=y
# BLE (NimBLE peripheral, coexists with WiFi)
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=n