summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-28 20:15:20 +0700
committerhathach <[email protected]>2018-07-28 22:42:44 +0700
commit8b17c5460950c425e17a055940e3a02cf6b29962 (patch)
treedc730af4daada5828094c2436ab7568171b69e8b /src/device/usbd.c
parentc729db229422a2771be394ea4ac8de65eac619e4 (diff)
fix hid generic various error
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 49fee44c2..7c302cc77 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -328,14 +328,11 @@ static void usbd_reset(uint8_t rhport)
tud_desc_set.hid_report.boot_mouse = _desc_auto_hid_boot_mse_report;
#endif
-#if 0 // CFG_TUD_HID_BOOT_PROTOCOL
-
- #if CFG_TUD_HID_KEYBOARD + CFG_TUD_HID_MOUSE
- tud_desc_set.hid_report.composite = ;
+ #if TUD_OPT_HID_GENERIC
+ extern uint8_t const _desc_auto_hid_generic_report[];
+ tud_desc_set.hid_report.generic = _desc_auto_hid_generic_report;
#endif
-#endif
-
#endif // CFG_TUD_DESC_AUTO
}