Rodrigo Arias Mallo
2f48ad5f40
Allows writing baremetal programs that can read the correct offsets of devices or clock frequencies.
10 lines
236 B
C
10 lines
236 B
C
#define CPU_CLOCK_FREQUENCY 50000000 // 50 MHz
|
|
#define RTC_CLOCK_FREQUENCY 32786
|
|
|
|
#define UART_SPEED 115200
|
|
#define UART0_ADDR 0x40001000
|
|
#define UART0_ADDR_HEX 40001000
|
|
|
|
#define PLIC_ADDR 0x40800000
|
|
#define UART_ADDR 0x40001000
|