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
crypto-aes
Jeff Epler 3 years ago
parent acde22a436
commit 45d1b290ee
  1. 4
      py/circuitpy_mpconfig.h

@ -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

Loading…
Cancel
Save