exception.h File Reference
#include "pico.h"
#include "hardware/address_mapped.h"
#include "hardware/regs/m0plus.h"
Include dependency graph for exception.h:

Go to the source code of this file.

Macros

#define PARAM_ASSERTIONS_ENABLED_EXCEPTION   0
 

Typedefs

typedef void(* exception_handler_t) (void)
 Exception handler function typeAll exception handlers should be of this type, and follow normal ARM EABI register saving conventions.
 

Enumerations

enum  exception_number {
  NMI_EXCEPTION = -14, HARDFAULT_EXCEPTION = -13, SVCALL_EXCEPTION = -5, PENDSV_EXCEPTION = -2,
  SYSTICK_EXCEPTION = -1
}
 Exception number definitions. More...
 

Functions

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.This method will assert if an exception handler has been set for this exception number on this core via this method, without an intervening restore via exception_restore_handler. More...
 
void exception_restore_handler (enum exception_number num, exception_handler_t original_handler)
 Restore the original exception handler for an exception on this coreThis method may be used to restore the exception handler for an exception on this core to the state prior to the call to exception_set_exclusive_handler(), so that exception_set_exclusive_handler() may be called again in the future. More...
 
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 table of the execution core. More...