@@ -66,67 +66,67 @@ static uint8_t digitizer_report_buffer[USB_HID_REPORT_LENGTH_DIGITIZER];
66
66
usb_hid_device_obj_t usb_hid_devices [] = {
67
67
#if USB_HID_DEVICE_KEYBOARD
68
68
{
69
- .base = { .type = & usb_hid_device_type },
70
- .report_buffer = keyboard_report_buffer ,
71
- .report_id = USB_HID_REPORT_ID_KEYBOARD ,
72
- .report_length = USB_HID_REPORT_LENGTH_KEYBOARD ,
73
- .usage_page = HID_USAGE_PAGE_DESKTOP ,
74
- .usage = HID_USAGE_DESKTOP_KEYBOARD ,
69
+ .base = { .type = & usb_hid_device_type } ,
70
+ .report_buffer = keyboard_report_buffer ,
71
+ .report_id = USB_HID_REPORT_ID_KEYBOARD ,
72
+ .report_length = USB_HID_REPORT_LENGTH_KEYBOARD ,
73
+ .usage_page = HID_USAGE_PAGE_DESKTOP ,
74
+ .usage = HID_USAGE_DESKTOP_KEYBOARD ,
75
75
},
76
76
#endif
77
77
78
78
#if USB_HID_DEVICE_MOUSE
79
79
{
80
- .base = { .type = & usb_hid_device_type },
81
- .report_buffer = mouse_report_buffer ,
82
- .report_id = USB_HID_REPORT_ID_MOUSE ,
83
- .report_length = USB_HID_REPORT_LENGTH_MOUSE ,
10000
84
- .usage_page = HID_USAGE_PAGE_DESKTOP ,
85
- .usage = HID_USAGE_DESKTOP_MOUSE ,
80
+ .base = { .type = & usb_hid_device_type } ,
81
+ .report_buffer = mouse_report_buffer ,
82
+ .report_id = USB_HID_REPORT_ID_MOUSE ,
83
+ .report_length = USB_HID_REPORT_LENGTH_MOUSE ,
84
+ .usage_page = HID_USAGE_PAGE_DESKTOP ,
85
+ .usage = HID_USAGE_DESKTOP_MOUSE ,
86
86
},
87
87
#endif
88
88
89
89
#if USB_HID_DEVICE_CONSUMER
90
90
{
91
- .base = { .type = & usb_hid_device_type },
92
- .report_buffer = consumer_report_buffer ,
93
- .report_id = USB_HID_REPORT_ID_CONSUMER ,
94
- .report_length = USB_HID_REPORT_LENGTH_CONSUMER ,
95
- .usage_page = HID_USAGE_PAGE_CONSUMER ,
96
- .usage = HID_USAGE_CONSUMER_CONTROL ,
91
+ .base = { .type = & usb_hid_device_type } ,
92
+ .report_buffer = consumer_report_buffer ,
93
+ .report_id = USB_HID_REPORT_ID_CONSUMER ,
94
+ .report_length = USB_HID_REPORT_LENGTH_CONSUMER ,
95
+ .usage_page = HID_USAGE_PAGE_CONSUMER ,
96
+ .usage = HID_USAGE_CONSUMER_CONTROL ,
97
97
},
98
98
#endif
99
99
100
100
#if USB_HID_DEVICE_SYS_CONTROL
101
101
{
102
- .base = { .type = & usb_hid_device_type },
103
- .report_buffer = sys_control_report_buffer ,
104
- .report_id = USB_HID_REPORT_ID_SYS_CONTROL ,
105
- .report_length = USB_HID_REPORT_LENGTH_SYS_CONTROL ,
106
- .usage_page = HID_USAGE_PAGE_DESKTOP ,
107
- .usage = HID_USAGE_DESKTOP_SYSTEM_CONTROL ,
102
+ .base = { .type = & usb_hid_device_type } ,
103
+ .report_buffer = sys_control_report_buffer ,
104
+ .report_id = USB_HID_REPORT_ID_SYS_CONTROL ,
105
+ .report_length = USB_HID_REPORT_LENGTH_SYS_CONTROL ,
106
+ .usage_page = HID_USAGE_PAGE_DESKTOP ,
107
+ .usage = HID_USAGE_DESKTOP_SYSTEM_CONTROL ,
108
108
},
109
109
#endif
110
110
111
111
#if USB_HID_DEVICE_GAMEPAD
112
112
{
113
- .base = { .type = & usb_hid_device_type },
114
- .report_buffer = gamepad_report_buffer ,
115
- .report_id = USB_HID_REPORT_ID_GAMEPAD ,
116
- .report_length = USB_HID_REPORT_LENGTH_GAMEPAD ,
117
- .usage_page = HID_USAGE_PAGE_DESKTOP ,
118
- .usage = HID_USAGE_DESKTOP_GAMEPAD ,
113
+ .base = { .type = & usb_hid_device_type } ,
114
+ .report_buffer = gamepad_report_buffer ,
115
+ .report_id = USB_HID_REPORT_ID_GAMEPAD ,
116
+ .report_length = USB_HID_REPORT_LENGTH_GAMEPAD ,
117
+ .usage_page = HID_USAGE_PAGE_DESKTOP ,
118
+ .usage = HID_USAGE_DESKTOP_GAMEPAD ,
119
119
},
120
120
#endif
121
121
122
122
#if USB_HID_DEVICE_DIGITIZER
123
123
{
124
- .base = { .type = & usb_hid_device_type },
125
- .report_buffer = digitizer_report_buffer ,
126
- .report_id = USB_HID_REPORT_ID_DIGITIZER ,
127
- .report_length = USB_HID_REPORT_LENGTH_DIGITIZER ,
128
- .usage_page = 0x0D ,
129
- .usage = 0x02 ,
124
+ .base = { .type = & usb_hid_device_type } ,
125
+ .report_buffer = digitizer_report_buffer ,
126
+ .report_id = USB_HID_REPORT_ID_DIGITIZER ,
127
+ .report_length = USB_HID_REPORT_LENGTH_DIGITIZER ,
128
+ .usage_page = 0x0D ,
129
+ .usage = 0x02 ,
130
130
},
131
131
#endif
132
132
};
0 commit comments