diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-08-11 08:31:58 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-08-11 08:53:02 -0500 |
| commit | 076cbcc4f8da59d9f1559e09fff95d18c7fbc48b (patch) | |
| tree | 7428faf05115699a121abed128a28d8a9d4f00d5 /py | |
| parent | 568dfc73a9ba39caf6d4f7be3f098e3f5ca56312 (diff) | |
cicuitpy_mpconfg.h: Define RUN_BACKGROUND_TASKS
In #2013, @danh says:
My choice of where to put the semicolon is deliberate,
so that we can say
RUN_BACKGROUND_TASKS;
not have a redundant semicolon, and not confuse C code formatting.
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_mpconfig.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index b9c7a6d24..3cd22a079 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -653,6 +653,7 @@ extern const struct _mp_obj_module_t ustack_module; NETWORK_ROOT_POINTERS \ void run_background_tasks(void); +#define RUN_BACKGROUND_TASKS (run_background_tasks()) // TODO: Used in wiznet5k driver, but may not be needed in the long run. #define MICROPY_THREAD_YIELD() |
