|
inlinestaticnoexcept |
Register an interrupt handler function.
| Func | Callable type (function pointer or stateless lambda) |
| vector | Interrupt vector to set handler for |
| handler | Function to call when the interrupt occurs |
Routes to System::SetInterruptHandler() for SCU vectors (0x40-0x4F) or System::SetInterruptVector() for CPU/TRAP vectors (0x60-0x8F). Compile-time checks ensure the callable has the correct signature (void()) and has no captures.
| Vector Range | Type | Lambda? | Attribute Required | Return |
|---|---|---|---|---|
| 0x40-0x4F | SCU Interrupts | No | Mandatory __attribute__((interrupt_handler)) | rte |
| 0x60-0x8F | CPU / TRAP | Yes (stateless) | Not required | rts |