X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Fuart.h;h=0c46691120e607b547183d0be4e3982717b3d3fe;hp=e330ae4d30d0b64f7507663b03d7ad6238e93c92;hb=36f1048dfeec94c6f305b76082fecec93347b2ec;hpb=993155fee2327f1f3cda285c9548bbb09688a3f3 diff --git a/src/uart.h b/src/uart.h index e330ae4..0c46691 100644 --- a/src/uart.h +++ b/src/uart.h @@ -4,7 +4,7 @@ #include "config.h" #define UART0_BASE (IO_BASE | 0x201000) -#define UART0_REG(x) *(volatile uint32_t*)(UART0_BASE | (x)) +#define UART0_REG(x) (*(volatile uint32_t*)(UART0_BASE | (x))) #define REG_DR UART0_REG(0x00) /* data register */ #define REG_RSRECR UART0_REG(0x04) /* receive status & error clear */