From: Nathael Pajani Date: Thu, 17 Apr 2014 09:19:26 +0000 (+0200) Subject: Use a dummy fault handler in core and move the "user defined" one to main.c X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=f72f10dc58faac287f8064be564625f427d10ddc;p=soft%2Flpc122x%2Fcore Use a dummy fault handler in core and move the "user defined" one to main.c --- diff --git a/core/fault_handlers.c b/core/fault_handlers.c index d1bfe25..56bc0d0 100644 --- a/core/fault_handlers.c +++ b/core/fault_handlers.c @@ -25,9 +25,10 @@ #include "core/lpc_regs_12xx.h" #include "drivers/serial.h" -void fault_info(const char* name, uint32_t len) -{ - serial_write(1, name, len); +void fault_info(const char* name, uint32_t len) __attribute__ ((weak, alias ("Dummy_Fault_Handler"))); + +void Dummy_Fault_Handler(const char* name, uint32_t len) { + while (1); } /* Cortex M0 core interrupt handlers */