firmware: move nlr_jump_fail from common to firmware

pull/25/head
Pavol Rusnak 7 years ago
parent 32e48258e4
commit 10ebd43261
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -93,7 +93,13 @@ int main(void) {
return 0;
}
// Micropython file I/O stubs
// MicroPython default exception handler
void __attribute__((noreturn)) nlr_jump_fail(void *val) {
__fatal_error("uncaught exception", NULL, 0, NULL);
}
// MicroPython file I/O stubs
mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
return NULL;

@ -26,10 +26,6 @@ void __assert_func(const char *file, int line, const char *func, const char *exp
}
#endif
void __attribute__((noreturn)) nlr_jump_fail(void *val) {
__fatal_error("uncaught exception", NULL, 0, NULL);
}
void periph_init(void) {
// STM32F4xx HAL library initialization:

@ -16,8 +16,6 @@ void periph_init(void);
void __attribute__((noreturn)) __fatal_error(const char *msg, const char *file, int line, const char *func);
void __attribute__((noreturn)) nlr_jump_fail(void *val);
void jump_to(uint32_t address);
void hal_delay(uint32_t ms);

Loading…
Cancel
Save