feat(usb): 添加USB HID模块支持键盘和消费设备
- 添加USB HID模块实现键盘和消费控制设备功能 - 在CMakeLists.txt中添加usb_hid_module.c和相关事件文件 - 添加HID LED事件和设置协议事件定义及实现 - 配置设备树添加HID键盘和消费者设备节点 - 启用USB设备堆栈配置选项 - 修改键盘核心模块以处理协议切换事件 - 修复键映射中keypad enter的位置错误 - 注释掉电池模块中的调试日志输出
This commit is contained in:
22
inc/events/hid_led_event.h
Normal file
22
inc/events/hid_led_event.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef BLINKY_HID_LED_EVENT_H_
|
||||
#define BLINKY_HID_LED_EVENT_H_
|
||||
|
||||
#include <app_event_manager.h>
|
||||
#include <app_event_manager_profiler_tracer.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct hid_led_event {
|
||||
struct app_event_header header;
|
||||
uint8_t led_bm;
|
||||
};
|
||||
|
||||
APP_EVENT_TYPE_DECLARE(hid_led_event);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BLINKY_HID_LED_EVENT_H_ */
|
||||
Reference in New Issue
Block a user