zephyr: Use core-provided keyboard exception object.

pull/2690/head
Paul Sokolovsky 2016-12-16 01:07:28 +03:00
rodzic 724b82559d
commit 0c59c30fde
3 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -75,7 +75,6 @@ soft_reset:
mp_obj_list_init(mp_sys_path, 0);
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
mp_obj_list_init(mp_sys_argv, 0);
MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module("main.py");

Wyświetl plik

@ -37,6 +37,7 @@
#define MICROPY_ENABLE_GC (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_AUTO_INDENT (1)
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_CPYTHON_COMPAT (0)
#define MICROPY_PY_ASYNC_AWAIT (0)
#define MICROPY_PY_ATTRTUPLE (0)
@ -94,7 +95,6 @@ typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM
#define MICROPY_PORT_ROOT_POINTERS \
mp_obj_t mp_kbd_exception; \
const char *readline_hist[8];
extern const struct _mp_obj_module_t mp_module_machine;

Wyświetl plik

@ -87,5 +87,4 @@ typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM
#define MICROPY_PORT_ROOT_POINTERS \
mp_obj_t mp_kbd_exception; \
const char *readline_hist[8];