kopia lustrzana https://github.com/micropython/micropython
cc3200: Add mphal error to raise hardware related exceptions.
rodzic
598aad2140
commit
42054c3cad
|
@ -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) {
|
void mp_hal_set_interrupt_char (int c) {
|
||||||
mpexception_set_interrupt_char (c);
|
mpexception_set_interrupt_char (c);
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,7 @@ extern void HAL_SystemDeInit (void);
|
||||||
extern void HAL_IncrementTick(void);
|
extern void HAL_IncrementTick(void);
|
||||||
extern uint32_t HAL_GetTick(void);
|
extern uint32_t HAL_GetTick(void);
|
||||||
extern void HAL_Delay(uint32_t delay);
|
extern void HAL_Delay(uint32_t delay);
|
||||||
|
extern NORETURN void mp_hal_raise(int errno);
|
||||||
extern void mp_hal_set_interrupt_char (int c);
|
extern void mp_hal_set_interrupt_char (int c);
|
||||||
|
|
||||||
int mp_hal_stdin_rx_chr(void);
|
int mp_hal_stdin_rx_chr(void);
|
||||||
|
|
Ładowanie…
Reference in New Issue