Numworks Epsilon
1.4.1
Graphing Calculator Operating System
mphalport.c
Go to the documentation of this file.
1
#include "
py/mpstate.h
"
2
#include "
py/mphal.h
"
3
4
#if MICROPY_KBD_EXCEPTION
5
6
int
mp_interrupt_char
;
7
8
void
mp_hal_set_interrupt_char
(
int
c
) {
9
if
(
c
!= -1) {
10
mp_obj_exception_clear_traceback
(
MP_OBJ_FROM_PTR
(&
MP_STATE_VM
(mp_kbd_exception)));
11
}
12
mp_interrupt_char
=
c
;
13
}
14
15
void
mp_keyboard_interrupt
(
void
) {
16
MP_STATE_VM
(mp_pending_exception) =
MP_OBJ_FROM_PTR
(&
MP_STATE_VM
(mp_kbd_exception));
17
}
18
19
#endif
mp_obj_exception_clear_traceback
void mp_obj_exception_clear_traceback(mp_obj_t self_in)
Definition:
objexcept.c:478
mphal.h
mp_keyboard_interrupt
void mp_keyboard_interrupt(void)
MP_OBJ_FROM_PTR
#define MP_OBJ_FROM_PTR(p)
Definition:
obj.h:233
MP_STATE_VM
#define MP_STATE_VM(x)
Definition:
mpstate.h:241
c
c(generic_all_nodes)
mp_interrupt_char
int mp_interrupt_char
mpstate.h
mp_hal_set_interrupt_char
void mp_hal_set_interrupt_char(int c)
epsilon
python
port
mphalport.c
Generated by
1.8.14