changes memeory map to match RISCV-VP, commit a94fd67

This commit is contained in:
2026-02-01 18:58:28 +01:00
parent 3ee8f6d230
commit f3232373fe
3 changed files with 15 additions and 10 deletions

View File

@@ -5,11 +5,11 @@
#include "riscv-traps.h"
#define PERIPH(TYPE, ADDR) ((volatile TYPE*)(ADDR))
#define APB_BASE 0x10000000
#define APB_BASE 0xF0000000
#define uart PERIPH(uart_t, APB_BASE + 0x01000)
#define aclint PERIPH(aclint_t, APB_BASE + 0x30000)
#define ethmac0 PERIPH(ethmac_t, 0x18000000)
#define ethmac1 PERIPH(ethmac_t, 0x18001000)
#define ethmac0 PERIPH(ethmac_t, 0xF1000000)
#define ethmac1 PERIPH(ethmac_t, 0xF1001000)
#define UART0_IRQ 16
#define TIMER0_IRQ0 17