nixos-riscv/dts/lagarto_ox.h
Rodrigo Arias Mallo 2f48ad5f40 Define DT constants in a C header file
Allows writing baremetal programs that can read the correct offsets of
devices or clock frequencies.
2024-09-05 16:59:06 +02:00

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