Browse Source

rp2/cyw43_configport: Add event hook into cyw43_delay_ms.

Still see some USB issues apparently caused by delays loading wifi
firmware.  cyw43_delay_ms is used to wait in the driver, so we should call
the event hook in there.

Fixes #8963.
pull/8972/head
Peter Harper 2 years ago
committed by Damien George
parent
commit
45ab801c30
  1. 1
      ports/rp2/cyw43_configport.h

1
ports/rp2/cyw43_configport.h

@ -93,6 +93,7 @@ static inline void cyw43_delay_ms(uint32_t ms) {
int32_t start = mp_hal_ticks_us();
while (mp_hal_ticks_us() - start < us) {
__WFI();
MICROPY_EVENT_POLL_HOOK_FAST;
}
}

Loading…
Cancel
Save