circuitpython/ports/stm/supervisor
Scott Shawcroft d2860b58b0
Check background pending before sleep
There is a race between when we run background tasks and when we
sleep. If an interrupt happens between the two, then we may delay
executing the background task. On some ports we checked this for
TinyUSB already. On iMX RT, we didn't which caused USB issues.
This PR makes it more generic for all background tasks including
USB.

Fixes #5086 and maybe others.
2021-08-19 12:18:13 -07:00
..
cpu.s create copy 2020-03-11 18:13:06 -04:00
internal_flash.c run code formatting script 2021-03-15 19:27:36 +05:30
internal_flash.h run code formatting script 2021-03-15 19:27:36 +05:30
internal_flash_root_pointers.h create copy 2020-03-11 18:13:06 -04:00
port.c Check background pending before sleep 2021-08-19 12:18:13 -07:00
qspi_flash.c run code formatting script 2021-03-15 19:27:36 +05:30
serial.c run code formatting script 2021-03-15 19:27:36 +05:30
usb.c run code formatting script 2021-03-15 19:27:36 +05:30