diff options
Diffstat (limited to 'stmhal/mphal.c')
-rw-r--r-- | stmhal/mphal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/mphal.c b/stmhal/mphal.c index 7fcd982dcb..43e1b9ba36 100644 --- a/stmhal/mphal.c +++ b/stmhal/mphal.c @@ -5,6 +5,7 @@ #include "misc.h" #include "qstr.h" #include "obj.h" +#include "usb.h" #include "mphal.h" // this table converts from HAL_StatusTypeDef to POSIX errno @@ -18,3 +19,7 @@ const byte mp_hal_status_to_errno_table[4] = { NORETURN void mp_hal_raise(HAL_StatusTypeDef status) { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(mp_hal_status_to_errno_table[status]))); } + +void mp_hal_set_interrupt_char(int c) { + usb_vcp_set_interrupt_char(c); +} |