X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Fuart.h;h=e330ae4d30d0b64f7507663b03d7ad6238e93c92;hp=ade162e46bdc7150864663a9f4b49e493a443e05;hb=993155fee2327f1f3cda285c9548bbb09688a3f3;hpb=9a3655a43358c43128f6e62c8d74ff3aa81960c7 diff --git a/src/uart.h b/src/uart.h index ade162e..e330ae4 100644 --- a/src/uart.h +++ b/src/uart.h @@ -1,7 +1,9 @@ #ifndef UART_PL011_H_ #define UART_PL011_H_ -#define UART0_BASE 0x3f201000 +#include "config.h" + +#define UART0_BASE (IO_BASE | 0x201000) #define UART0_REG(x) *(volatile uint32_t*)(UART0_BASE | (x)) #define REG_DR UART0_REG(0x00) /* data register */