circuitpy_mpconfig.h: Express HOOKS in terms of RUN_BACKGROUND_TASKS
.. this means that when we want to modify RUN_BACKGROUND_TASKS, only one change is needed instead of 3
This commit is contained in:
parent
acde22a436
commit
45d1b290ee
|
@ -658,8 +658,8 @@ void run_background_tasks(void);
|
||||||
// TODO: Used in wiznet5k driver, but may not be needed in the long run.
|
// TODO: Used in wiznet5k driver, but may not be needed in the long run.
|
||||||
#define MICROPY_THREAD_YIELD()
|
#define MICROPY_THREAD_YIELD()
|
||||||
|
|
||||||
#define MICROPY_VM_HOOK_LOOP run_background_tasks();
|
#define MICROPY_VM_HOOK_LOOP RUN_BACKGROUND_TASKS;
|
||||||
#define MICROPY_VM_HOOK_RETURN run_background_tasks();
|
#define MICROPY_VM_HOOK_RETURN RUN_BACKGROUND_TASKS;
|
||||||
|
|
||||||
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
|
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
|
||||||
#define CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS 1000
|
#define CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS 1000
|
||||||
|
|
Loading…
Reference in New Issue