#include "interrupt.h"Functions | |
| static void | IntDefaultHandler (void) |
| The default interrupt handler. More... | |
| void | IntRegister (uint32_t ui32Interrupt, void(*pfnHandler)(void)) |
| Registers a function as an interrupt handler in the dynamic vector table. More... | |
| void | IntUnregister (uint32_t ui32Interrupt) |
| Unregisters an interrupt handler in the dynamic vector table. More... | |
| void | IntPriorityGroupingSet (uint32_t ui32Bits) |
| Sets the priority grouping of the interrupt controller. More... | |
| uint32_t | IntPriorityGroupingGet (void) |
| Gets the priority grouping of the interrupt controller. More... | |
| void | IntPrioritySet (uint32_t ui32Interrupt, uint8_t ui8Priority) |
| Sets the priority of an interrupt. More... | |
| int32_t | IntPriorityGet (uint32_t ui32Interrupt) |
| Gets the priority of an interrupt. More... | |
| void | IntEnable (uint32_t ui32Interrupt) |
| Enables an interrupt. More... | |
| void | IntDisable (uint32_t ui32Interrupt) |
| Disables an interrupt. More... | |
| void | IntPendSet (uint32_t ui32Interrupt) |
| Pends an interrupt. More... | |
| bool | IntPendGet (uint32_t ui32Interrupt) |
| Checks if an interrupt is pending. More... | |
| void | IntPendClear (uint32_t ui32Interrupt) |
| Unpends an interrupt. More... | |
Variables | |
| static const uint32_t | g_pui32Priority [] |
| static const uint32_t | g_pui32Regs [] |
| void(* | g_pfnRAMVectors [NUM_INTERRUPTS])(void) |
| Global pointer to the (dynamic) interrupt vector table when placed in SRAM. More... | |
|
static |
The default interrupt handler.
This is the default interrupt handler for all interrupts. It simply loops forever so that the system state is preserved for observation by a debugger. Since interrupts should be disabled before unregistering the corresponding handler, this should never be called.
Referenced by IntUnregister().
| void(* g_pfnRAMVectors[NUM_INTERRUPTS])(void) |
Global pointer to the (dynamic) interrupt vector table when placed in SRAM.
Interrupt vector table is placed at "vtable_ram" defined in the linker file provided by Texas Instruments. By default, this is at the beginning of SRAM.
interrupt.c for compiler specific implementation! Referenced by IntRegister(), and IntUnregister().
|
static |
This is a mapping between priority grouping encodings and the number of preemption priority bits.
Referenced by IntPriorityGroupingGet(), and IntPriorityGroupingSet().
|
static |
This is a mapping between interrupt number and the register that contains the priority encoding for that interrupt.
Referenced by IntPriorityGet(), and IntPrioritySet().