summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_lowputc.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-29 02:47:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-29 02:47:10 +0000
commit66ecc4811d6ebc309faa268b6cc5de7a52625cf1 (patch)
tree974e9ae38d808d2c46d59ee2f7aef4ec3a56d4aa /nuttx/arch/arm/src/stm32/stm32_lowputc.c
parent3943a119d8b44089d7e5f19ce52cb9169b8d3508 (diff)
downloadpx4-nuttx-66ecc4811d6ebc309faa268b6cc5de7a52625cf1.tar.gz
px4-nuttx-66ecc4811d6ebc309faa268b6cc5de7a52625cf1.tar.bz2
px4-nuttx-66ecc4811d6ebc309faa268b6cc5de7a52625cf1.zip
Need to config CTS/RTS pins for USART2/3 even if not using flow control
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2184 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_lowputc.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_lowputc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_lowputc.c b/nuttx/arch/arm/src/stm32/stm32_lowputc.c
index e2ead3772..2ba0f65a9 100644
--- a/nuttx/arch/arm/src/stm32/stm32_lowputc.c
+++ b/nuttx/arch/arm/src/stm32/stm32_lowputc.c
@@ -298,6 +298,8 @@ void stm32_lowsetup(void)
stm32_configgpio(GPIO_USART2_TX);
stm32_configgpio(GPIO_USART2_RX);
+ stm32_configgpio(GPIO_USART2_CTS);
+ stm32_configgpio(GPIO_USART2_RTS);
#endif /* CONFIG_STM32_USART2 */
#ifdef CONFIG_STM32_USART3
@@ -323,6 +325,8 @@ void stm32_lowsetup(void)
stm32_configgpio(GPIO_USART3_TX);
stm32_configgpio(GPIO_USART3_RX);
+ stm32_configgpio(GPIO_USART3_CTS);
+ stm32_configgpio(GPIO_USART3_RTS);
#endif /* CONFIG_STM32_USART3 */
/* Enable and configure the selected console device */