mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/kinetis_common: fixes to fault_handlers
This commit is contained in:
parent
d4d34a782e
commit
de31e1f9e8
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#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");
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user