Fix broken UART(i) definition
This commit is contained in:
parent
cb5e67a871
commit
b0206d0ca6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue