From b0206d0ca638fd80f3bae755d97bb3453adfb093 Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Tue, 25 Aug 2015 22:31:47 -0700 Subject: [PATCH] Fix broken UART(i) definition --- core/include/esp/uart_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/esp/uart_regs.h b/core/include/esp/uart_regs.h index 4726823..671754d 100644 --- a/core/include/esp/uart_regs.h +++ b/core/include/esp/uart_regs.h @@ -24,7 +24,7 @@ */ #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 UART1_BASE (UART_BASE + 0xf00)