summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-06 22:21:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-06 22:21:58 +0000
commit48dd111c71faf703e2ec28f59b0388208e0257bf (patch)
tree8e3f18c7face90c45d7e0bd4a4f08943f0fcf873
parent7e0ea45aea8bac3372cf4d880693c1cbc8ba707c (diff)
downloadnuttx-48dd111c71faf703e2ec28f59b0388208e0257bf.tar.gz
nuttx-48dd111c71faf703e2ec28f59b0388208e0257bf.tar.bz2
nuttx-48dd111c71faf703e2ec28f59b0388208e0257bf.zip
Fix typo in STM32 header files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4915 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_serial.c13
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_serial.h2
-rwxr-xr-xnuttx/arch/arm/src/stm32/chip/stm32f103vc_pinmap.h2
-rw-r--r--nuttx/arch/arm/src/stm32/chip/stm32f107vc_pinmap.h2
4 files changed, 10 insertions, 9 deletions
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c
index 5fc0cc049..4aed36110 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/arm/src/lpc43xx/lpc43_serial.c
*
- * Copyright (C) 2010-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -60,8 +60,7 @@
#include "os_internal.h"
#include "up_internal.h"
-#include "lpc43_internal.h"
-#include "lpc43_uart.h"
+#include "lpc43_config.h"
#include "lpc43_serial.h"
/****************************************************************************
@@ -161,7 +160,7 @@ static struct up_dev_s g_uart0priv =
{
.uartbase = LPC43_USART0_BASE,
.baud = CONFIG_USART0_BAUD,
- .irq = LPC43_IRQ_USART0,
+ .irq = LPC43M4_IRQ_USART0,
.parity = CONFIG_USART0_PARITY,
.bits = CONFIG_USART0_BITS,
.stopbits2 = CONFIG_USART0_2STOP,
@@ -191,7 +190,7 @@ static struct up_dev_s g_uart1priv =
{
.uartbase = LPC43_UART1_BASE,
.baud = CONFIG_UART1_BAUD,
- .irq = LPC43_IRQ_UART1,
+ .irq = LPC43M4_IRQ_UART1,
.parity = CONFIG_UART1_PARITY,
.bits = CONFIG_UART1_BITS,
.stopbits2 = CONFIG_UART1_2STOP,
@@ -221,7 +220,7 @@ static struct up_dev_s g_uart2priv =
{
.uartbase = LPC43_USART2_BASE,
.baud = CONFIG_USART2_BAUD,
- .irq = LPC43_IRQ_USART2,
+ .irq = LPC43M4_IRQ_USART2,
.parity = CONFIG_USART2_PARITY,
.bits = CONFIG_USART2_BITS,
.stopbits2 = CONFIG_USART2_2STOP,
@@ -251,7 +250,7 @@ static struct up_dev_s g_uart3priv =
{
.uartbase = LPC43_USART3_BASE,
.baud = CONFIG_USART3_BAUD,
- .irq = LPC43_IRQ_USART3,
+ .irq = LPC43M4_IRQ_USART3,
.parity = CONFIG_USART3_PARITY,
.bits = CONFIG_USART3_BITS,
.stopbits2 = CONFIG_USART3_2STOP,
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.h b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.h
index 6d9a50793..78c321407 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_serial.h
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_serial.h
@@ -41,6 +41,8 @@
****************************************************************************/
#include <nuttx/config.h>
+#include "chip.h"
+#include "chip/lpc43_uart.h"
/****************************************************************************
* Pre-processor Definitions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32f103vc_pinmap.h b/nuttx/arch/arm/src/stm32/chip/stm32f103vc_pinmap.h
index bf74a1cae..c8f33321a 100755
--- a/nuttx/arch/arm/src/stm32/chip/stm32f103vc_pinmap.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32f103vc_pinmap.h
@@ -357,7 +357,7 @@
#endif
#endif
-#define GPIO_USART1_CTS (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPU|GPIO_PORTA|GPIO_PIN11)
+#define GPIO_USART1_CTS (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTA|GPIO_PIN11)
#define GPIO_USART1_RTS (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN12)
#define GPIO_USART1_CK (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN8)
#if defined(CONFIG_STM32_USART1_REMAP)
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32f107vc_pinmap.h b/nuttx/arch/arm/src/stm32/chip/stm32f107vc_pinmap.h
index d99ac39dc..0b46d79fa 100644
--- a/nuttx/arch/arm/src/stm32/chip/stm32f107vc_pinmap.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32f107vc_pinmap.h
@@ -350,7 +350,7 @@
#endif
#endif
-#define GPIO_USART1_CTS (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPU|GPIO_PORTA|GPIO_PIN11)
+#define GPIO_USART1_CTS (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTA|GPIO_PIN11)
#define GPIO_USART1_RTS (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN12)
#define GPIO_USART1_CK (GPIO_ALT|GPIO_CNF_AFPP|GPIO_MODE_50MHz|GPIO_PORTA|GPIO_PIN8)
#if defined(CONFIG_STM32_USART1_REMAP)