feat(ble): 添加 Swift Pair 模块支持

- 在 CMakeLists.txt 中添加 swift_pair_module.c 源文件
- 将 BLINKY_BLE_BOND_MULTI 配置项重命名为 BLINKY_BLE_BOND_MULTI_INTERNAL 并移除帮助文本
- 在 prj.conf 中启用 CONFIG_BT_ADV_PROV_SWIFT_PAIR 配置选项
- 新增 swift_pair_module.c 实现 Swift Pair 功能,包括:
  - 监听蓝牙配对多设备事件和蓝牙对等操作事件
  - 根据选中的身份标识控制 Swift Pair 载荷的启用/禁用
  - 当设备被选中或擦除时更新 Swift Pair 状态
This commit is contained in:
2026-04-25 18:09:53 +08:00
parent d27df7f3bf
commit adaad6cc34
4 changed files with 62 additions and 4 deletions

View File

@@ -4,16 +4,14 @@ source "Kconfig.zephyr"
menu "Application"
config BLINKY_BLE_BOND_MULTI
bool "Blinky BLE multi-slot bond support"
config BLINKY_BLE_BOND_MULTI_INTERNAL
bool
depends on BT_BONDABLE
depends on BT_SETTINGS
depends on CAF_SETTINGS_LOADER
depends on CAF_BLE_COMMON_EVENTS
select CAF_BLE_BOND_SUPPORTED
default y
help
Enable the application-specific Bluetooth LE multi-slot bond module.
endmenu