summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2019-08-19 17:15:20 -0400
committerGitHub <noreply@github.com>2019-08-19 17:15:20 -0400
commit0ddfbb0c20432458cc8020ab5ad7538e6813b60b (patch)
tree2aac829585c9508d899e98ceea44e457be7d4f05 /py
parent6b54e6749e110674634143e38d3b6eb598b18ce0 (diff)
parentfc7ae2aa6f21046d58f59143752bbd5c7bc038db (diff)
Merge pull request #2055 from jepler/run-background-tasks
Implement and use RUN_BACKGROUND_TASKS in place of MICROPY_VM_HOOK_LOOP
Diffstat (limited to 'py')
-rw-r--r--py/circuitpy_mpconfig.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index 1dbca8c61..393b7600c 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -596,8 +596,8 @@ extern const struct _mp_obj_module_t ustack_module;
WIZNET_MODULE \
PEW_MODULE \
PIXELBUF_MODULE \
- PULSEIO_MODULE \
PS2IO_MODULE \
+ PULSEIO_MODULE \
RANDOM_MODULE \
RE_MODULE \
ROTARYIO_MODULE \
@@ -645,6 +645,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()