changes memeory map to match RISCV-VP, commit a94fd67
This commit is contained in:
1 parent
3ee8f6d230
commit
f3232373fe
3 files changed
+15
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user