Fix broken UART(i) definition

This commit is contained in:
Alex Stewart 2015-08-25 22:31:47 -07:00
parent bf44bc61d1
commit 78be94744c

View file

@ -24,7 +24,7 @@
*/ */
#define UART_BASE 0x60000000 #define UART_BASE 0x60000000
#define UART(i) (*(struct UART_REGS *)(0x60000200 - (i)*0xf00)) #define UART(i) (*(struct UART_REGS *)(UART_BASE + (i)*0xf00))
#define UART0_BASE UART_BASE #define UART0_BASE UART_BASE
#define UART1_BASE (UART_BASE + 0xf00) #define UART1_BASE (UART_BASE + 0xf00)