diff --git a/cpu/kinetis_common/fault_handlers.c b/cpu/kinetis_common/fault_handlers.c index 10126c2611..f05d56b6a8 100644 --- a/cpu/kinetis_common/fault_handlers.c +++ b/cpu/kinetis_common/fault_handlers.c @@ -21,6 +21,7 @@ */ #include +#include "cpu.h" #include "panic.h" #include "fault_handlers.h" @@ -56,5 +57,5 @@ void isr_debug_mon(void) void isr_unhandled(void) { - core_panic(PANIC_UNHANDLED_ISR, "UNHANDLED ISR"); + core_panic(PANIC_DUMMY_HANDLER, "UNHANDLED ISR"); } diff --git a/cpu/kinetis_common/include/fault_handlers.h b/cpu/kinetis_common/include/fault_handlers.h index 778cba8f55..9300d727a1 100644 --- a/cpu/kinetis_common/include/fault_handlers.h +++ b/cpu/kinetis_common/include/fault_handlers.h @@ -63,20 +63,6 @@ void isr_debug_mon(void); */ void isr_unhandled(void); -/** - * @brief Definition of different panic modes - */ -typedef enum { - PANIC_NMI_HANDLER, /**< non maskable interrupt */ - PANIC_HARD_FAULT, /**< hard fault */ - PANIC_MEM_MANAGE, /**< memory controller interrupt */ - PANIC_BUS_FAULT, /**< bus fault */ - PANIC_USAGE_FAULT, /**< undefined instruction or unaligned access */ - PANIC_DEBUG_MON, /**< debug interrupt */ - PANIC_UNHANDLED_ISR, /**< unhandled interrupt */ -} panic_t; - - #ifdef __cplusplus } #endif