RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches

Overview

Structs used by the driver.

Note
This is an example show how to instantiate PLIC with plic_instance_t and plic_hwreg_t.
plic_instance_t wdg_plic = {
.target = BSP_PLIC_CPU_0,
.gateway = WATCHDOG_SOFT_PANIC_INTERRUPT,
.priority = 0x1U,
.enable = 0x1U,
.threshold = 0x0U,
};
// Apply Config for PLIC & WDG setting
plic_applyConfig(&wdg_plic);
#define BSP_PLIC_CPU_0
Primary PLIC CPU 0 External Interrupt base address.
Definition bsp.h:51
void plic_applyConfig(plic_instance_t *inst)
Apply stored PLIC configuration to hardware.
Definition plic.c:83
PLIC instance. Holds the software registers and hardware pointer.
Definition plic.h:137

Data Structures

struct  plic_priority_block_t
 Priority Block: 1024 sources max (Offset 0x000000). More...
struct  plic_pending_block_t
 Pending Block: 1024 sources / 32 bits = 32 words (Offset 0x001000). More...
struct  plic_enable_block_t
 Enable Block: Per Target (Hart). Stride is 0x80 bytes (Offset 0x002000). More...
struct  plic_context_block_t
 Context Block: Per Target (Hart). Stride is 0x1000 (4096) bytes (Offset 0x200000). More...
struct  plic_hwreg_t
 PLIC hardware register map. More...
struct  plic_instance_t
 PLIC instance. Holds the software registers and hardware pointer. More...