Merge pull request #33 from foogod/uart_fix

Fix broken UART(i) definition
This commit is contained in:
Angus Gratton 2015-08-27 15:56:17 +10:00
commit bcc22bdfc5

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)