summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-04-28 10:57:34 +1000
committerDamien George <damien@micropython.org>2021-04-30 15:13:43 +1000
commite9e9c76ddf131f8e50b0ae2d44501d3cd88537ef (patch)
treef9a89b19b8c1b74fd6c6f2ba004dcf174e6c4f1e /py
parentbd54eb566f85293279d02d0a663c7e4d9f59e660 (diff)
all: Rename mp_keyboard_interrupt to mp_sched_keyboard_interrupt.
To match mp_sched_exception() and mp_sched_schedule(). Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h4
-rw-r--r--py/runtime.h2
-rw-r--r--py/scheduler.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 2934f8ec8..4445e9aee 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1508,8 +1508,8 @@ typedef double mp_float_t;
#define MICROPY_WRAP_MP_SCHED_EXCEPTION(f) f
#endif
-#ifndef MICROPY_WRAP_MP_KEYBOARD_INTERRUPT
-#define MICROPY_WRAP_MP_KEYBOARD_INTERRUPT(f) f
+#ifndef MICROPY_WRAP_MP_SCHED_KEYBOARD_INTERRUPT
+#define MICROPY_WRAP_MP_SCHED_KEYBOARD_INTERRUPT(f) f
#endif
#ifndef MICROPY_WRAP_MP_SCHED_SCHEDULE
diff --git a/py/runtime.h b/py/runtime.h
index 9ad4bc024..7d2cb94e8 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -65,7 +65,7 @@ void mp_init(void);
void mp_deinit(void);
void mp_sched_exception(mp_obj_t exc);
-void mp_keyboard_interrupt(void);
+void mp_sched_keyboard_interrupt(void);
void mp_handle_pending(bool raise_exc);
void mp_handle_pending_tail(mp_uint_t atomic_state);
diff --git a/py/scheduler.c b/py/scheduler.c
index f37f8c3f8..9ff930007 100644
--- a/py/scheduler.c
+++ b/py/scheduler.c
@@ -39,7 +39,7 @@ void mp_sched_exception(mp_obj_t exc) {
#if MICROPY_KBD_EXCEPTION
// This function may be called asynchronously at any time so only do the bare minimum.
-void MICROPY_WRAP_MP_KEYBOARD_INTERRUPT(mp_keyboard_interrupt)(void) {
+void MICROPY_WRAP_MP_SCHED_KEYBOARD_INTERRUPT(mp_sched_keyboard_interrupt)(void) {
MP_STATE_VM(mp_kbd_exception).traceback_data = NULL;
mp_sched_exception(MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception)));
}