feat(hal): Adds hal funcs for cpu.c

This commit is contained in:
Konstantin Kondrashov
2024-04-11 13:07:04 +03:00
parent 0b5a6e33fc
commit 06c28f0ee9
21 changed files with 437 additions and 104 deletions
@@ -375,6 +375,10 @@ config SOC_INT_PLIC_SUPPORTED
bool
default y
config SOC_CPU_HAS_CSR_PC
bool
default y
config SOC_CPU_BREAKPOINTS_NUM
int
default 4
@@ -142,6 +142,7 @@
#define SOC_CPU_INTR_NUM 32
#define SOC_CPU_HAS_FLEXIBLE_INTC 1
#define SOC_INT_PLIC_SUPPORTED 1 //riscv platform-level interrupt controller
#define SOC_CPU_HAS_CSR_PC 1
#define SOC_CPU_BREAKPOINTS_NUM 4
#define SOC_CPU_WATCHPOINTS_NUM 4