diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-29 10:13:17 -0700 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-29 10:15:38 -0700 |
commit | 6ab2c5e6cc6359c3419a9d8ee61b4e586864d048 (patch) | |
tree | b27471a8e09a8cff12978cc7930a3ddf31cb2cde /esp8266/main.c | |
parent | 53bfcc9e848c43e58694c7cb7a2356b31fc67445 (diff) |
lib/interrupt_char: Factor out typical Ctrl+C handling from esp8266 port.
Utility functions for keyboard interrupt handling, to be reused across
(baremetal) ports.
Diffstat (limited to 'esp8266/main.c')
-rw-r--r-- | esp8266/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/esp8266/main.c b/esp8266/main.c index 71dfeb2ac..22abb22d7 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -141,10 +141,6 @@ mp_obj_t mp_builtin_open(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) { } MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open); -void mp_keyboard_interrupt(void) { - MP_STATE_VM(mp_pending_exception) = MP_STATE_PORT(mp_kbd_exception); -} - void nlr_jump_fail(void *val) { printf("NLR jump failed\n"); for (;;) { |