summaryrefslogtreecommitdiffstatshomepage
path: root/py/scheduler.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-04-23 16:18:14 +1000
committerDamien George <damien.p.george@gmail.com>2020-04-30 23:47:11 +1000
commit544c308c18d134ade0ce23f39b73dc3f46074825 (patch)
treee2c2c0cef650526a492b735ce2382c41e46c8578 /py/scheduler.c
parent4371c971e3dfb743388ccb493c137a25aa9cdd35 (diff)
downloadmicropython-544c308c18d134ade0ce23f39b73dc3f46074825.tar.gz
micropython-544c308c18d134ade0ce23f39b73dc3f46074825.zip
py/scheduler: Add option to wrap mp_sched_schedule in arbitrary attr.
So ports can put it in a special memory section if needed.
Diffstat (limited to 'py/scheduler.c')
-rw-r--r--py/scheduler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/scheduler.c b/py/scheduler.c
index b559091b83..06d7b36c2c 100644
--- a/py/scheduler.c
+++ b/py/scheduler.c
@@ -120,7 +120,7 @@ void mp_sched_unlock(void) {
MICROPY_END_ATOMIC_SECTION(atomic_state);
}
-bool mp_sched_schedule(mp_obj_t function, mp_obj_t arg) {
+bool MICROPY_WRAP_MP_SCHED_SCHEDULE(mp_sched_schedule)(mp_obj_t function, mp_obj_t arg) {
mp_uint_t atomic_state = MICROPY_BEGIN_ATOMIC_SECTION();
bool ret;
if (!mp_sched_full()) {