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:
Jeff Epler 2019-11-16 15:24:56 -06:00
parent acde22a436
commit 45d1b290ee
1 changed files with 2 additions and 2 deletions

View File

@ -658,8 +658,8 @@ void run_background_tasks(void);
// TODO: Used in wiznet5k driver, but may not be needed in the long run.
#define MICROPY_THREAD_YIELD()
#define MICROPY_VM_HOOK_LOOP run_background_tasks();
#define MICROPY_VM_HOOK_RETURN run_background_tasks();
#define MICROPY_VM_HOOK_LOOP RUN_BACKGROUND_TASKS;
#define MICROPY_VM_HOOK_RETURN RUN_BACKGROUND_TASKS;
#define CIRCUITPY_AUTORELOAD_DELAY_MS 500
#define CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS 1000