py/scheduler: Move mp_keyboard_interrupt from lib/utils to py core.

This function is tightly coupled to the state and behaviour of the
scheduler, and is a core part of the runtime: to schedule a pending
exception.  So move it there.
This commit is contained in:
Damien George
2020-02-06 20:25:54 +11:00
parent 5a91cd9ff3
commit 9efb36bfa6
6 changed files with 14 additions and 23 deletions

View File

@@ -64,6 +64,7 @@ extern const byte mp_binary_op_method_name[];
void mp_init(void);
void mp_deinit(void);
void mp_keyboard_interrupt(void);
void mp_handle_pending(bool raise_exc);
void mp_handle_pending_tail(mp_uint_t atomic_state);