circuitpython/ports
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
..
atmel-samd Check background pending before sleep 2021-08-19 12:18:13 -07:00
cxd56 Move OneWire to `onewireio` from `busio` 2021-08-12 10:47:14 -07:00
esp32s2 Check background pending before sleep 2021-08-19 12:18:13 -07:00
litex count in/out endpoints; allow more usb modules on low-endpoint boards 2021-05-13 21:59:02 -04:00
mimxrt10xx Check background pending before sleep 2021-08-19 12:18:13 -07:00
nrf Check background pending before sleep 2021-08-19 12:18:13 -07:00
raspberrypi Check background pending before sleep 2021-08-19 12:18:13 -07:00
stm Check background pending before sleep 2021-08-19 12:18:13 -07:00
unix enable qrio in unix coverage build, and add a test 2021-08-05 12:24:07 -05:00