diff options
| author | dherrada <33632497+dherrada@users.noreply.github.com> | 2020-07-21 16:18:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-21 16:18:51 -0400 |
| commit | 9e3fa863f1d0dcf8eae54554ffc7016eaa6de157 (patch) | |
| tree | 5130e268b1fad9dec287e93e3505a5a9a61a9249 /ports/litex/background.c | |
| parent | 612c6bb86b8762aa9388566eb69db9bbe4e8bbe4 (diff) | |
| parent | e047ea287f6658f1a1fd10ab31f45f25bce846c1 (diff) | |
Merge branch 'main' into type_hints
Diffstat (limited to 'ports/litex/background.c')
| -rw-r--r-- | ports/litex/background.c | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/ports/litex/background.c b/ports/litex/background.c index 8c1897043..174d9588a 100644 --- a/ports/litex/background.c +++ b/ports/litex/background.c @@ -29,32 +29,6 @@ #include "supervisor/usb.h" #include "supervisor/shared/stack.h" -#if CIRCUITPY_DISPLAYIO -#include "shared-module/displayio/__init__.h" -#endif - -static bool running_background_tasks = false; - -void background_tasks_reset(void) { - running_background_tasks = false; -} - -void run_background_tasks(void) { - // Don't call ourselves recursively. - if (running_background_tasks) { - return; - } - running_background_tasks = true; - filesystem_background(); - - #if USB_AVAILABLE - usb_background(); - #endif - - #if CIRCUITPY_DISPLAYIO - displayio_background(); - #endif - running_background_tasks = false; - - assert_heap_ok(); -} +void port_background_task(void) {} +void port_start_background_task(void) {} +void port_finish_background_task(void) {} |
