Skip to content

Commit c13027e

Browse files
committed
clean up
1 parent 3a91089 commit c13027e

File tree

1 file changed

+8
-8
lines changed
  • cores/nRF5/usb/Adafruit_TinyUSB_core/tinyusb/src/class/hid

1 file changed

+8
-8
lines changed

cores/nRF5/usb/Adafruit_TinyUSB_core/tinyusb/src/class/hid/hid_device.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
107107
* empty if multiple reports is not used
108108
*
109109
* - 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() };
111111
*
112112
* - Multiple Reports: "HID_REPORT_ID(ID)," must be passed to template
113113
* uint8_t const report_desc[] =
114114
* {
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), )
117117
* };
118118
*--------------------------------------------------------------------*/
119119

120120
// Keyboard Report Descriptor Template
121-
#define HID_REPORT_DESC_KEYBOARD(...) \
121+
#define TUD_HID_REPORT_DESC_KEYBOARD(...) \
122122
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
123123
HID_USAGE ( HID_USAGE_DESKTOP_KEYBOARD ) ,\
124124
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -159,7 +159,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
159159
HID_COLLECTION_END \
160160

161161
// Mouse Report Descriptor Template
162-
#define HID_REPORT_DESC_MOUSE(...) \
162+
#define TUD_HID_REPORT_DESC_MOUSE(...) \
163163
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
164164
HID_USAGE ( HID_USAGE_DESKTOP_MOUSE ) ,\
165165
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -199,7 +199,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
199199
HID_COLLECTION_END \
200200

201201
// Consumer Control Report Descriptor Template
202-
#define HID_REPORT_DESC_CONSUMER(...) \
202+
#define TUD_HID_REPORT_DESC_CONSUMER(...) \
203203
HID_USAGE_PAGE ( HID_USAGE_PAGE_CONSUMER ) ,\
204204
HID_USAGE ( HID_USAGE_CONSUMER_CONTROL ) ,\
205205
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -219,7 +219,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
219219
* 0x02 - Standby
220220
* 0x04 - Wake Host
221221
*/
222-
#define HID_REPORT_DESC_SYSTEM_CONTROL(...) \
222+
#define TUD_HID_REPORT_DESC_SYSTEM_CONTROL(...) \
223223
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
224224
HID_USAGE ( HID_USAGE_DESKTOP_SYSTEM_CONTROL ) ,\
225225
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\
@@ -242,7 +242,7 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id)
242242
// Gamepad Report Descriptor Template
243243
// with 16 buttons and 2 joysticks with following layout
244244
// | Button Map (2 bytes) | X | Y | Z | Rz
245-
#define HID_REPORT_DESC_GAMEPAD(...) \
245+
#define TUD_HID_REPORT_DESC_GAMEPAD(...) \
246246
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
247247
HID_USAGE ( HID_USAGE_DESKTOP_GAMEPAD ) ,\
248248
HID_COLLECTION ( HID_COLLECTION_APPLICATION ) ,\

0 commit comments

Comments
 (0)