diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 03:12:51 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 03:12:51 +0000 |
commit | c14fdd3ffe106e6f5eee49abc5182d55e190709c (patch) | |
tree | e2650391fd2e7143cc04c1856fedfac5e602e975 /nuttx/arch/arm/src/lpc17xx/lpc17_serial.c | |
parent | 36b629aa8d334aab147dcfcf76d17f4033f35cac (diff) | |
download | px4-nuttx-c14fdd3ffe106e6f5eee49abc5182d55e190709c.tar.gz px4-nuttx-c14fdd3ffe106e6f5eee49abc5182d55e190709c.tar.bz2 px4-nuttx-c14fdd3ffe106e6f5eee49abc5182d55e190709c.zip |
LPCXpression console on UART3
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3497 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_serial.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_serial.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c index 63687038f..f5c20aca6 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_serial.c @@ -141,12 +141,12 @@ static char g_uart1rxbuffer[CONFIG_UART1_RXBUFSIZE]; static char g_uart1txbuffer[CONFIG_UART1_TXBUFSIZE]; #endif #ifdef CONFIG_LPC17_UART2 -static char g_uart2rxbuffer[CONFIG_UART1_RXBUFSIZE]; -static char g_uart2txbuffer[CONFIG_UART1_TXBUFSIZE]; +static char g_uart2rxbuffer[CONFIG_UART2_RXBUFSIZE]; +static char g_uart2txbuffer[CONFIG_UART2_TXBUFSIZE]; #endif #ifdef CONFIG_LPC17_UART3 -static char g_uart3rxbuffer[CONFIG_UART1_RXBUFSIZE]; -static char g_uart3txbuffer[CONFIG_UART1_TXBUFSIZE]; +static char g_uart3rxbuffer[CONFIG_UART3_RXBUFSIZE]; +static char g_uart3txbuffer[CONFIG_UART3_TXBUFSIZE]; #endif /* This describes the state of the LPC17xx uart0 port. */ @@ -694,7 +694,7 @@ static inline void lpc17_uart2config(uint32_t clkdiv) /* Step 2: Enable clocking on UART */ regval = getreg32(LPC17_SYSCON_PCLKSEL1); - regval &= ~SYSCON_PCLKSEL0_UART2_MASK; + regval &= ~SYSCON_PCLKSEL1_UART2_MASK; regval |= (clkdiv << SYSCON_PCLKSEL1_UART2_SHIFT); putreg32(regval, LPC17_SYSCON_PCLKSEL1); @@ -722,7 +722,7 @@ static inline void lpc17_uart3config(uint32_t clkdiv) /* Step 2: Enable clocking on UART */ regval = getreg32(LPC17_SYSCON_PCLKSEL1); - regval &= ~SYSCON_PCLKSEL0_UART3_MASK; + regval &= ~SYSCON_PCLKSEL1_UART3_MASK; regval |= (clkdiv << SYSCON_PCLKSEL1_UART3_SHIFT); putreg32(regval, LPC17_SYSCON_PCLKSEL1); |