36#ifndef CONFIG_CORE_REBOOT_ON_PANIC
38#define CONFIG_CORE_REBOOT_ON_PANIC (0)
40#define CONFIG_CORE_REBOOT_ON_PANIC (1)
54#ifdef MODULE_CORTEXM_COMMON
57#if defined(CPU_CORE_CORTEX_M3) || defined(CPU_CORE_CORTEX_M33) || \
58 defined(CPU_CORE_CORTEX_M4) || defined(CPU_CORE_CORTEX_M4F) || \
59 defined(CPU_CORE_CORTEX_M7)
#define NORETURN
The NORETURN keyword tells the compiler to assume that the function cannot return.
Common macros and compiler attributes/pragmas configuration.
NORETURN void core_panic(core_panic_t crash_code, const char *message)
Handle an unrecoverable error by halting or rebooting the system.
void panic_arch(void)
architecture dependent handling of a panic case
core_panic_t
Definition of available panic modes.
@ PANIC_SSP
stack smashing protector failure
@ PANIC_MEM_MANAGE
memory management fault
@ PANIC_STACK_OVERFLOW
stack overflow detected