diff options
| author | hathach <[email protected]> | 2018-07-29 14:03:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-29 14:03:48 +0700 |
| commit | 683bb574e723685f38082f2461f2fa8eb9900c90 (patch) | |
| tree | 0ee6c78f823711da14108f7e76d18a738098c07f /src/device/usbd.c | |
| parent | 8b17c5460950c425e17a055940e3a02cf6b29962 (diff) | |
hid device enhance
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 7c302cc77..5f83728ef 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -318,12 +318,13 @@ static void usbd_reset(uint8_t rhport) tud_desc_set.device = (uint8_t const*) &_desc_auto_device;
tud_desc_set.config = _desc_auto_config;
- #if CFG_TUD_HID_KEYBOARD && CFG_TUD_DESC_BOOT_KEYBOARD
+#if CFG_TUD_HID
+ #if CFG_TUD_HID_KEYBOARD && CFG_TUD_HID_KEYBOARD_BOOT
extern uint8_t const _desc_auto_hid_boot_kbd_report[];
tud_desc_set.hid_report.boot_keyboard = _desc_auto_hid_boot_kbd_report;
#endif
- #if CFG_TUD_HID_MOUSE && CFG_TUD_DESC_BOOT_MOUSE
+ #if CFG_TUD_HID_MOUSE && CFG_TUD_HID_MOUSE_BOOT
extern uint8_t const _desc_auto_hid_boot_mse_report[];
tud_desc_set.hid_report.boot_mouse = _desc_auto_hid_boot_mse_report;
#endif
@@ -332,6 +333,7 @@ static void usbd_reset(uint8_t rhport) extern uint8_t const _desc_auto_hid_generic_report[];
tud_desc_set.hid_report.generic = _desc_auto_hid_generic_report;
#endif
+#endif // CFG_TUD_HID
#endif // CFG_TUD_DESC_AUTO
|
