Platform-Level Interrupt Controller (PLIC) driver.
This module provides functions to configure and control PLIC input/output and interrupt behavior.
Usage & Initialization.
This is an example show how to instantiate PLIC Controller Driver for interrupt configuration.
To set interrupt type and enable global interrupt, refer to IRQ Controller Driver.
.gateway = SYSTEM_USER_TIMER_0_INTERRUPTS_0,
.priority = 0x1U,
.enable = 0x1U,
.threshold = 0x0U,
};
void isrInit(){
}
#define BSP_PLIC_CPU_0
Primary PLIC CPU 0 External Interrupt base address.
void irq_enable(void)
Enable Global Interrupts (MIE bit).
void irq_setType(cpu_irq_t enable)
Enable specific CPU interrupt sources.
void plic_applyConfig(plic_instance_t *inst)
Apply stored PLIC configuration to hardware.
RISC-V Core Interrupt Handling and Vector Table.
PLIC instance. Holds the software registers and hardware pointer.
User Timer driver API definitions.