circuitpython/ports/esp32s2/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
..
esp_port.h Add alarm.pin that wakes on pin level 2020-12-15 18:12:59 -08:00
internal_flash.c run code formatting script 2021-03-15 19:27:36 +05:30
internal_flash.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
internal_flash_root_pointers.h wip 2020-11-22 19:10:09 -05:00
port.c Check background pending before sleep 2021-08-19 12:18:13 -07:00
usb.c Fix a couple fake sleep bugs on nrf and esp 2021-07-28 13:27:48 -07:00