Repository navigation
interrupt.h header
aelsi2 edited this page May 9, 2026
·
4 revisions
#include <cdm/interrupt.h>Functions for controlling processor interrupts.
void int_enable(void);Enables hardware interrupts. Sets the interrupt (I) bit in PSR.
Lowered into ei processor instruction.
void int_disable(void);Disables hardware interrupts. Clears the interrupt (I) bit in PSR.
Lowered into di processor instruction.
void int_wait(void);Waits for a hardware interrupt.
Continues execution on IRQ without granting the interrupt if the I bit is not set in PSR.
Lowered into wait processor instruction.
#define int_trigger(vector)
int_trigger(5);Triggers a software interrupt with the specified vector.
Interrupt vector must be a compile-time integer constant in the range [0; 63].
Lowered into int $vector processor instruction.
- Home
- LLVM targets
- Memory models
- ISA extensions
- Standard library
- Platform C headers
- Default linker scripts
- CDM ABI
- Getting started
- Setting up a project
- Using C and assembly together
- Memory-mapped IO
- Interrupt handlers