aboutsummaryrefslogtreecommitdiff
path: root/cc3200/hal/cc3200_hal.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/hal/cc3200_hal.c')
-rw-r--r--cc3200/hal/cc3200_hal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc3200/hal/cc3200_hal.c b/cc3200/hal/cc3200_hal.c
index 526211fee..827b59f65 100644
--- a/cc3200/hal/cc3200_hal.c
+++ b/cc3200/hal/cc3200_hal.c
@@ -128,6 +128,10 @@ void HAL_Delay(uint32_t delay) {
}
}
+NORETURN void mp_hal_raise(int errno) {
+ nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, mp_obj_new_int(errno)));
+}
+
void mp_hal_set_interrupt_char (int c) {
mpexception_set_interrupt_char (c);
}