@@ -107,18 +107,18 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
107
107
* empty if multiple reports is not used
108
108
*
109
109
* - Only 1 report: no parameter
110
- * uint8_t const report_desc[] = { HID_REPORT_DESC_KEYBOARD () };
110
+ * uint8_t const report_desc[] = { TUD_HID_REPORT_DESC_KEYBOARD () };
111
111
*
112
112
* - Multiple Reports: "HID_REPORT_ID(ID)," must be passed to template
113
113
* uint8_t const report_desc[] =
114
114
* {
115
- * HID_REPORT_DESC_KEYBOARD ( HID_REPORT_ID(1), ) ,
116
- * HID_REPORT_DESC_MOUSE ( HID_REPORT_ID(2), )
115
+ * TUD_HID_REPORT_DESC_KEYBOARD ( HID_REPORT_ID(1), ) ,
116
+ * TUD_HID_REPORT_DESC_MOUSE ( HID_REPORT_ID(2), )
117
117
* };
118
118
*--------------------------------------------------------------------*/
119
119
120
120
// Keyboard Report Descriptor Template
121
- #define HID_REPORT_DESC_KEYBOARD (...) \
121
+ #define TUD_HID_REPORT_DESC_KEYBOARD (...) \
122
122
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
123
123
HID_USAGE ( HID_USAGE_DESKTOP_KEYBOARD ) ,\
124
124
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -159,7 +159,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
159
159
HID_COLLECTION_END \
160
160
161
161
// Mouse Report Descriptor Template
162
- #define HID_REPORT_DESC_MOUSE (...) \
162
+ #define TUD_HID_REPORT_DESC_MOUSE (...) \
163
163
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
164
164
HID_USAGE ( HID_USAGE_DESKTOP_MOUSE ) ,\
165
165
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -199,7 +199,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
199
199
HID_COLLECTION_END \
200
200
201
201
// Consumer Control Report Descriptor Template
202
- #define HID_REPORT_DESC_CONSUMER (...) \
202
+ #define TUD_HID_REPORT_DESC_CONSUMER (...) \
203
203
HID_USAGE_PAGE ( HID_USAGE_PAGE_CONSUMER ) ,\
204
204
HID_USAGE ( HID_USAGE_CONSUMER_CONTROL ) ,\
205
205
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -219,7 +219,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
219
219
* 0x02 - Standby
220
220
* 0x04 - Wake Host
221
221
*/
222
- #define HID_REPORT_DESC_SYSTEM_CONTROL (...) \
222
+ #define TUD_HID_REPORT_DESC_SYSTEM_CONTROL (...) \
223
223
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
224
224
HID_USAGE ( HID_USAGE_DESKTOP_SYSTEM_CONTROL ) ,\
225
225
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -242,7 +242,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
242
242
// Gamepad Report Descriptor Template
243
243
// with 16 buttons and 2 joysticks with following layout
244
244
// | Button Map (2 bytes) | X | Y | Z | Rz
245
- #define HID_REPORT_DESC_GAMEPAD (...) \
245
+ #define TUD_HID_REPORT_DESC_GAMEPAD (...) \
246
246
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
247
247
HID_USAGE ( HID_USAGE_DESKTOP_GAMEPAD ) ,\
248
248
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
0 commit comments