0.3.1
|
Modules | |
Setters | |
Typedefs | |
typedef enum cpu_intc_interrupt | cpu_intc_interrupt_t |
Interrupt vectors. | |
typedef void(* | cpu_intc_ihr_t) (void) |
Callback type. | |
Enumerations | |
enum | cpu_intc_interrupt |
Interrupt vectors. More... | |
Functions | |
static void | cpu_intc_ihr_set (cpu_intc_interrupt_t vector, cpu_intc_ihr_t ihr) |
Set the interrupt handler for the specified CPU related interrupt. | |
static void | cpu_intc_ihr_clear (cpu_intc_interrupt_t vector) |
Clear the interrupt handler for the specified CPU related interrupt. | |
static cpu_intc_ihr_t | cpu_intc_ihr_get (cpu_intc_interrupt_t vector) |
Obtain the interrupt handler for the specified CPU related interrupt. | |
static uint8_t | cpu_intc_mask_get (void) |
Obtain the interrupt priority level I mask bits from the sr register. | |
static void | cpu_intc_mask_set (uint8_t mask) |
Set the interrupt priority level. | |
static uint16_t | cpu_intc_priority_a_get (void) |
Obtain the value of the 2-byte value of the IPRA I/O register. | |
static uint16_t | cpu_intc_priority_b_get (void) |
Obtain the value of the 2-byte value of the IPRB I/O register. | |
static void | cpu_intc_priority_a_set (uint16_t ipra) |
Write a 2-byte value to the IPRA I/O register. | |
static void | cpu_intc_priority_b_set (uint16_t iprb) |
Write a 2-byte value to the IPRB I/O register. | |
Description goes here.
typedef void(* cpu_intc_ihr_t) (void) |
Callback type.
enum cpu_intc_interrupt |
Interrupt vectors.
|
inlinestatic |
Set the interrupt handler for the specified CPU related interrupt.
This is a BIOS call. The function must use rte
to return. Use the __interrupt_handler GCC attribute.
To set a handler in the slave CPU vector table, add the offset CPU_INTC_INTERRUPT_SLAVE_BASE to vector
.
vector | The vector number. |
ihr | The interrupt handler. |
|
inlinestatic |
Clear the interrupt handler for the specified CPU related interrupt.
This is a BIOS call.
To clear a handler in the slave CPU vector table, add the offset CPU_INTC_INTERRUPT_SLAVE_BASE to vector
.
vector | The vector number. |
|
inlinestatic |
Obtain the interrupt handler for the specified CPU related interrupt.
This is a BIOS call.
To get a handler in the slave CPU vector table, add the offset CPU_INTC_INTERRUPT_SLAVE_BASE to vector
.
vector | The vector number. |
|
inlinestatic |
Obtain the interrupt priority level I
mask bits from the sr
register.
I
mask bits from the sr
register.
|
inlinestatic |
Set the interrupt priority level.
mask | The interrupt priority level. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Write a 2-byte value to the IPRA I/O register.
ipra | The value to write to. |