summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r--tmk_core/protocol/chibios/usb_main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c
index 2a287e0d98..5a5354416f 100644
--- a/tmk_core/protocol/chibios/usb_main.c
+++ b/tmk_core/protocol/chibios/usb_main.c
@@ -325,18 +325,10 @@ static bool usb_requests_hook_cb(USBDriver *usbp) {
325 return false; 325 return false;
326} 326}
327 327
328static __attribute__((unused)) void dummy_cb(USBDriver *usbp) {
329 (void)usbp;
330}
331
332static const USBConfig usbcfg = { 328static const USBConfig usbcfg = {
333 usb_event_cb, /* USB events callback */ 329 usb_event_cb, /* USB events callback */
334 usb_get_descriptor_cb, /* Device GET_DESCRIPTOR request callback */ 330 usb_get_descriptor_cb, /* Device GET_DESCRIPTOR request callback */
335 usb_requests_hook_cb, /* Requests hook callback */ 331 usb_requests_hook_cb, /* Requests hook callback */
336#if STM32_USB_USE_OTG1 == TRUE || STM32_USB_USE_OTG2 == TRUE
337 dummy_cb, /* Workaround for OTG Peripherals not servicing new interrupts
338 after resuming from suspend. */
339#endif
340}; 332};
341 333
342void init_usb_driver(USBDriver *usbp) { 334void init_usb_driver(USBDriver *usbp) {