7#ifndef _HARDWARE_EXCEPTION_H_
8#define _HARDWARE_EXCEPTION_H_
12#include "hardware/regs/m0plus.h"
28#ifndef PARAM_ASSERTIONS_ENABLED_EXCEPTION
29#define PARAM_ASSERTIONS_ENABLED_EXCEPTION 0
53 HARDFAULT_EXCEPTION = -13,
54 SVCALL_EXCEPTION = -5,
55 PENDSV_EXCEPTION = -2,
56 SYSTICK_EXCEPTION = -1,
exception_handler_t exception_set_exclusive_handler(enum exception_number num, exception_handler_t handler)
Set the exception handler for an exception on the executing core.
Definition: exception.c:44
void(* exception_handler_t)(void)
Exception handler function type.
Definition: exception.h:64
exception_number
Exception number definitions.
Definition: exception.h:51
exception_handler_t exception_get_vtable_handler(enum exception_number num)
Get the current exception handler for the specified exception from the currently installed vector tab...
Definition: exception.c:39
void exception_restore_handler(enum exception_number num, exception_handler_t original_handler)
Restore the original exception handler for an exception on this core.
Definition: exception.c:57