1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

firmware: move nlr_jump_fail from common to firmware

This commit is contained in:
Pavol Rusnak 2017-10-11 20:01:22 +02:00
parent 32e48258e4
commit 10ebd43261
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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:

View File

@ -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);