circuitpython/supervisor/shared
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
..
bluetooth Increase tx power for BLE workflow pairing 2021-08-13 11:30:09 -07:00
external_flash Simplify the status LED to save power 2021-05-13 14:41:20 -07:00
usb Check background pending before sleep 2021-08-19 12:18:13 -07:00
autoreload.c Merge remote-tracking branch 'upstream/main' into setnextcode 2021-06-20 15:25:37 -04:00
autoreload.h Fix missed precommit formatting 2021-06-20 17:00:56 -04:00
background_callback.c Check background pending before sleep 2021-08-19 12:18:13 -07:00
board.c run code formatting script 2021-03-15 19:27:36 +05:30
board.h run code formatting script 2021-03-15 19:27:36 +05:30
cpu.c modify copyright notice. 2021-04-25 19:57:21 +09:00
cpu.h modify copyright notice. 2021-04-25 19:57:21 +09:00
display.c Add ability to disable BLE workflow 2021-08-02 18:37:19 -07:00
display.h Turn off terminalio for ja and ko 2020-08-17 17:17:59 -07:00
filesystem.c Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
flash.c Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
internal_flash.h Hopefully fix flash flush and hopefully audio as well. 2020-03-13 11:12:31 -07:00
lock.c compiles 2021-06-14 20:54:43 -04:00
lock.h compiles 2021-06-14 20:54:43 -04:00
memory.c Add supervisor.get_previous_traceback() function. 2021-07-22 12:23:55 -04:00
micropython.c Fix board builds and use MP_ERROR_TEXT in py and extmod 2021-05-05 17:51:52 -07:00
rgb_led_colors.h Simplify the status LED to save power 2021-05-13 14:41:20 -07:00
safe_mode.c Tweak blink and treat SWD reset like reset button 2021-07-14 16:45:47 -07:00
safe_mode.h address review comments 2021-05-05 12:35:12 -04:00
serial.c Create first BLE-only board, Micro:Bit v2 2021-07-14 09:55:51 -07:00
stack.c run code formatting script 2021-03-15 19:27:36 +05:30
stack.h run code formatting script 2021-03-15 19:27:36 +05:30
status_leds.c raytac_mdbt50q-rx 2021-08-04 15:47:19 -04:00
status_leds.h Simplify the status LED to save power 2021-05-13 14:41:20 -07:00
tick.c remove gamepad; deprecate gamepadshift 2021-07-26 22:15:09 -04:00
tick.h supervisor: factor supervisor_background_tasks from sundry ports 2020-07-15 11:49:44 -05:00
traceback.c Formatting fixes 2021-07-22 12:57:10 -04:00
traceback.h Formatting fixes 2021-07-22 12:57:10 -04:00
translate.c Improve mp_printf with support for compressed strings 2021-08-09 08:27:28 -05:00
translate.h Improve mp_printf with support for compressed strings 2021-08-09 08:27:28 -05:00
workflow.c Switch to upstream TinyUSB 2021-01-21 11:33:13 -08:00
workflow.h `workflow_active` was never defined or used 2021-05-01 13:34:28 -04:00