- 添加USB HID模块实现键盘和消费控制设备功能 - 在CMakeLists.txt中添加usb_hid_module.c和相关事件文件 - 添加HID LED事件和设置协议事件定义及实现 - 配置设备树添加HID键盘和消费者设备节点 - 启用USB设备堆栈配置选项 - 修改键盘核心模块以处理协议切换事件 - 修复键映射中keypad enter的位置错误 - 注释掉电池模块中的调试日志输出
25 lines
447 B
C
25 lines
447 B
C
#ifndef BLINKY_SET_PROTOCOL_EVENT_H_
|
|
#define BLINKY_SET_PROTOCOL_EVENT_H_
|
|
|
|
#include <app_event_manager.h>
|
|
#include <app_event_manager_profiler_tracer.h>
|
|
|
|
#include "keyboard_core.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct set_protocol_event {
|
|
struct app_event_header header;
|
|
enum keyboard_protocol_mode protocol_mode;
|
|
};
|
|
|
|
APP_EVENT_TYPE_DECLARE(set_protocol_event);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* BLINKY_SET_PROTOCOL_EVENT_H_ */
|