circuitpython/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
..
messages Support internationalisation. 2018-08-07 14:58:57 -07:00
shared Check background pending before sleep 2021-08-19 12:18:13 -07:00
stub Create first BLE-only board, Micro:Bit v2 2021-07-14 09:55:51 -07:00
background_callback.h Check background pending before sleep 2021-08-19 12:18:13 -07:00
board.h Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
cpu.h Mark pointers in cpu registers as in use. 2018-07-03 05:45:50 -07:00
filesystem.h flush flash filesystem once a second 2019-03-20 12:21:36 -04:00
flash.h Redo RP2040 flash settings 2021-03-18 16:55:42 -07:00
flash_root_pointers.h Automatically count EXTERNAL_FLASH_DEVICES (mk2) 2021-03-07 12:51:47 -06:00
linker.h Redo RP2040 flash settings 2021-03-18 16:55:42 -07:00
memory.h run code formatting script 2021-03-15 19:27:36 +05:30
port.h run code formatting script 2021-03-15 19:27:36 +05:30
serial.h codeformat: Fix handling of `**` 2021-04-30 15:30:13 -05:00
spi_flash_api.h Fix devices include by splitting type from defines 2021-03-25 11:37:08 -07:00
supervisor.mk Add supervisor.get_previous_traceback() function. 2021-07-22 12:23:55 -04:00
usb.h Enable a BLE workflow 2021-06-24 12:59:14 -07:00
workflow.h `workflow_active` was never defined or used 2021-05-01 13:34:28 -04:00