diff options
| author | Stefan Kerkmann <karlk90@pm.me> | 2024-12-15 18:42:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-15 18:42:43 +0100 |
| commit | 8e6bfbfdc27b6ecb38f884b011ebca3ef95e33fc (patch) | |
| tree | 8538d8592b5e3bebc8035123ff4a3162ed9529cc /tmk_core | |
| parent | be6ff3af2bd878ac5d1c075aab539bf4e23e34a7 (diff) | |
[Core] chibios: usb_main: remove OTG sof workaround (#24259)
chibios: usb_main: remove OTG sof workaround
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>
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/protocol/chibios/usb_main.c | 8 |
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 | ||
| 328 | static __attribute__((unused)) void dummy_cb(USBDriver *usbp) { | ||
| 329 | (void)usbp; | ||
| 330 | } | ||
| 331 | |||
| 332 | static const USBConfig usbcfg = { | 328 | static 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 | ||
| 342 | void init_usb_driver(USBDriver *usbp) { | 334 | void init_usb_driver(USBDriver *usbp) { |
