std1.0.0-beta-7 SafeC docs

std :: interrupt::isr

Struct std::IsrTable

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

struct IsrTable {
    ?fn void() handlers[ISR_MAX];
    int count;
}

Fields

§?fn void() handlers[ISR_MAX]source

null = none

§int countsource

number of registered handlers

Methods

§int dispatch(int irq)source · definition

Dispatch: call the handler for IRQ irq if registered. Returns 1 if a handler was called, 0 if no handler registered.

§static struct IsrTable new()source · definition

Initialize an ISR vector table (all entries set to NULL).