feat(hids): 添加HID服务模块支持键盘和多媒体功能
- 新增hids_module.c实现蓝牙HID服务,支持键盘NKRO和Consumer控制 - 添加hid_report_descriptor.h定义统一的HID描述符,包括键盘、多媒体和RAW HID - 在CMakeLists.txt中注册hids模块源文件 - 配置prj.conf启用蓝牙HID相关配置项,设置设备名称和外观 - 修改main.c移除启动LED效果,简化主函数逻辑 - 添加settings_loader_def.h确保模块依赖正确加载 - 配置pm_static.yml分配flash存储空间给mcuboot和settings - 调整电源管理超时时间从20秒增加到300秒 - 启用MCUBOOT引导加载器支持
This commit is contained in:
39
pm_static.yml
Normal file
39
pm_static.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
mcuboot:
|
||||
address: 0x0
|
||||
end_address: 0xc000
|
||||
region: flash_primary
|
||||
size: 0xc000
|
||||
|
||||
mcuboot_pad:
|
||||
address: 0xc000
|
||||
end_address: 0xc200
|
||||
region: flash_primary
|
||||
size: 0x200
|
||||
|
||||
app:
|
||||
address: 0xc200
|
||||
end_address: 0x82000
|
||||
region: flash_primary
|
||||
size: 0x75e00
|
||||
|
||||
mcuboot_primary:
|
||||
address: 0xc000
|
||||
end_address: 0x82000
|
||||
orig_span: &id001
|
||||
- mcuboot_pad
|
||||
- app
|
||||
region: flash_primary
|
||||
size: 0x76000
|
||||
span: *id001
|
||||
|
||||
mcuboot_secondary:
|
||||
address: 0x82000
|
||||
end_address: 0xf8000
|
||||
region: flash_primary
|
||||
size: 0x76000
|
||||
|
||||
settings_storage:
|
||||
address: 0xf8000
|
||||
end_address: 0x100000
|
||||
region: flash_primary
|
||||
size: 0x8000
|
||||
Reference in New Issue
Block a user