std1.0.0-beta-7 SafeC docs

Module interrupt::vector_table

#include <std/interrupt/vector_table.h> source

Vector Table Management Provides a software-managed vector table for Cortex-M, RISC-V, and AArch64. Link section placement is controlled by the linker script; this header provides the C/SafeC interface to populate and activate the table. Freestanding-safe.

Structs

VectorTable

Type aliases

IrqHandler

Functions

vtable_initInitialise all slots to the default handler.
vtable_activateActivate the vector table on the current CPU:
vtable_default_handlerDefault (weak) fault handler — infinite loop; override per project.

Macros

VTABLE_MAX_VECTORSCortex-M can have up to 256 external IRQs + 16 core

Globals

vtableGlobal vector table instance.