aboutsummaryrefslogtreecommitdiff
path: root/cc3200/hal
diff options
context:
space:
mode:
authorDamien George2016-10-18 09:53:43 +1100
committerDamien George2016-10-18 09:53:43 +1100
commit50ddaafa6acf5fbbe6f98e64fd5744a9a8347aff (patch)
treebefec1a67de032a774fc8f785145f51859b8bf7a /cc3200/hal
parent4d45f286ebab62fd7c7b524bdfcdf58522b911c8 (diff)
cc3200: Use mp_raise_XXX helper functions to reduce code size.
Reduces code size by 632 bytes.
Diffstat (limited to 'cc3200/hal')
-rw-r--r--cc3200/hal/cc3200_hal.c4
-rw-r--r--cc3200/hal/cc3200_hal.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/cc3200/hal/cc3200_hal.c b/cc3200/hal/cc3200_hal.c
index f4d38d120..37026db14 100644
--- a/cc3200/hal/cc3200_hal.c
+++ b/cc3200/hal/cc3200_hal.c
@@ -130,10 +130,6 @@ void mp_hal_delay_ms(mp_uint_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);
}
diff --git a/cc3200/hal/cc3200_hal.h b/cc3200/hal/cc3200_hal.h
index 054d5035a..9715096b6 100644
--- a/cc3200/hal/cc3200_hal.h
+++ b/cc3200/hal/cc3200_hal.h
@@ -62,7 +62,6 @@
extern void HAL_SystemInit (void);
extern void HAL_SystemDeInit (void);
extern void HAL_IncrementTick(void);
-extern NORETURN void mp_hal_raise(int errno);
extern void mp_hal_set_interrupt_char (int c);
#endif /* CC3200_LAUNCHXL_HAL_CC3200_HAL_H_ */