Skip to content

Commit

Permalink
Merge pull request #33 from foogod/uart_fix
Browse files Browse the repository at this point in the history
Fix broken UART(i) definition
  • Loading branch information
projectgus committed Aug 27, 2015
2 parents cb5e67a + b0206d0 commit bcc22bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/include/esp/uart_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcc22bd

Please sign in to comment.