summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-30 15:49:16 +0700
committerhathach <[email protected]>2018-07-30 15:49:16 +0700
commit2910b8d77a91e200d78fcc7e5ba1821e1505fed1 (patch)
treebd5c2aeb3c37e369f3dabf2558c3b550c9c097c2 /src
parent683bb574e723685f38082f2461f2fa8eb9900c90 (diff)
clean up
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd_desc.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/device/usbd_desc.c b/src/device/usbd_desc.c
index 8f147aa67..df88d30bd 100644
--- a/src/device/usbd_desc.c
+++ b/src/device/usbd_desc.c
@@ -118,7 +118,7 @@
//--------------------------------------------------------------------+
-/*------------- Keyboard Descriptor -------------*/
+/*------------- Keyboard Descriptor Template -------------*/
#define HID_REPORT_KEYBOARD(...) \
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
HID_USAGE ( HID_USAGE_DESKTOP_KEYBOARD ) ,\
@@ -159,7 +159,7 @@
HID_OUTPUT ( HID_CONSTANT ) ,\
HID_COLLECTION_END \
-/*------------- Mouse Descriptor -------------*/
+/*------------- Mouse Descriptor Template -------------*/
#define HID_REPORT_MOUSE(...) \
HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ) ,\
HID_USAGE ( HID_USAGE_DESKTOP_MOUSE ) ,\
@@ -200,7 +200,7 @@
HID_COLLECTION_END \
-/*------------- Generic (composite) Descriptor -------------*/
+/*------------- Boot Protocol Report Descriptor -------------*/
#if CFG_TUD_HID_KEYBOARD && CFG_TUD_HID_KEYBOARD_BOOT
uint8_t const _desc_auto_hid_boot_kbd_report[] = { HID_REPORT_KEYBOARD() };
#endif
@@ -209,8 +209,14 @@ uint8_t const _desc_auto_hid_boot_kbd_report[] = { HID_REPORT_KEYBOARD() };
uint8_t const _desc_auto_hid_boot_mse_report[] = { HID_REPORT_MOUSE() };
#endif
+
+/*------------- Generic (composite) Descriptor -------------*/
#if TUD_OPT_HID_GENERIC
+// Report ID: 0 if there is only 1 report
+// starting from 1 if there is multiple reports
+#define _REPORT_ID_KBD
+
// TODO report ID
uint8_t const _desc_auto_hid_generic_report[] =
{