diff options
| author | sakumisu <[email protected]> | 2022-07-28 21:25:29 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-07-28 21:35:22 +0800 |
| commit | f1bc0aef0419d648967779d9807bd00784cb9987 (patch) | |
| tree | b6b3cfbde9794e6091b7cd63d0670f1b898bc024 /class/hid/usbd_hid.c | |
| parent | d2fb9b36246dc1285c29a8581b3a3b58cb213f1e (diff) | |
refactor dcd api and ep in/out irq callback process
Diffstat (limited to 'class/hid/usbd_hid.c')
| -rw-r--r-- | class/hid/usbd_hid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/class/hid/usbd_hid.c b/class/hid/usbd_hid.c index 7aa38031..b0544e77 100644 --- a/class/hid/usbd_hid.c +++ b/class/hid/usbd_hid.c @@ -175,6 +175,9 @@ static void hid_notify_handler(uint8_t event, void *arg) case USBD_EVENT_RESET: usbd_hid_reset(); break; + case USBD_EVENT_CONFIGURED: + usbd_hid_setup(); + break; default: break; @@ -258,4 +261,8 @@ __WEAK void usbh_hid_set_idle(uint8_t intf, uint8_t report_id, uint8_t duration) __WEAK void usbh_hid_set_protocol(uint8_t intf, uint8_t protocol) { +} + +__WEAK void usbd_hid_setup(void) +{ }
\ No newline at end of file |
