Skip to content

Commit

Permalink
chibios: usb_main: remove OTG sof workaround
Browse files Browse the repository at this point in the history
With the update of ChibiOS and ChibiOS-Contrib containing fixes for the
OTGv1 LLD the workaround is not necessarry anymore.

Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
  • Loading branch information
KarlK90 committed Dec 15, 2024
1 parent be6ff3a commit 58e7e47
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tmk_core/protocol/chibios/usb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,18 +325,10 @@ static bool usb_requests_hook_cb(USBDriver *usbp) {
return false;
}

static __attribute__((unused)) void dummy_cb(USBDriver *usbp) {
(void)usbp;
}

static const USBConfig usbcfg = {
usb_event_cb, /* USB events callback */
usb_get_descriptor_cb, /* Device GET_DESCRIPTOR request callback */
usb_requests_hook_cb, /* Requests hook callback */
#if STM32_USB_USE_OTG1 == TRUE || STM32_USB_USE_OTG2 == TRUE
dummy_cb, /* Workaround for OTG Peripherals not servicing new interrupts
after resuming from suspend. */
#endif
};

void init_usb_driver(USBDriver *usbp) {
Expand Down

0 comments on commit 58e7e47

Please sign in to comment.