2025-02-10 23:59:35 +08:00
|
|
|
#ifndef __PLIC_H__
|
|
|
|
|
#define __PLIC_H__
|
|
|
|
|
|
|
|
|
|
#define PLIC_BASE (0xc000000U)
|
|
|
|
|
#define PLIC_PRIORITY (0U)
|
|
|
|
|
#define PLIC_PENDING_0_31 (0X001000U)
|
|
|
|
|
#define PLIC_ENABLE_0_31 (0X002000U)
|
|
|
|
|
#define PLIC_THRESHOLD_0 (0X200000U)
|
|
|
|
|
#define PLIC_CLAIM (0X200004U)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
|
#include "stdint.h"
|
|
|
|
|
|
|
|
|
|
extern volatile uint32_t *const plic_priority;
|
|
|
|
|
|
|
|
|
|
extern volatile uint32_t *const plic_pending_0_31;
|
|
|
|
|
extern volatile uint32_t *const plic_enable_0_31;
|
|
|
|
|
|
|
|
|
|
extern volatile uint32_t *const plic_threshold_0;
|
|
|
|
|
extern volatile uint32_t *const plic_claim;
|
2025-02-27 12:55:34 +08:00
|
|
|
extern volatile uint32_t exti_isr_flag[32];
|
2025-02-10 23:59:35 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|