Fix broken UART(i) definition

This commit is contained in:
Alex Stewart 2015-08-25 22:31:47 -07:00
parent cb5e67a871
commit b0206d0ca6

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)