Kieran Levin 385ed1a291 fix selective suspend on RP2040
the tmk_core chibios protocol_pre_task does not
process any usb events when the host is in suspend.

I think there is a race condition where the usb_event_queue_task
will not be processed depending on when usb goes to sleep.
so we may fall into the
while (USB_DRIVER.state == USB_SUSPENDED) {
which comes directly from the hardware interrupt.
and never process pending events in
usb_event_queue_task();

Signed-off-by: Kieran Levin <ktl@frame.work>
2023-11-17 19:04:24 +08:00
..
2023-06-28 13:07:14 +10:00
2021-11-19 10:41:02 -08:00
2021-11-19 10:41:02 -08:00
2023-06-28 13:07:14 +10:00
2023-11-17 19:04:24 +08:00
2022-03-07 21:04:22 +11:00