summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-13 11:45:32 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-13 11:45:32 -0600
commitb89ef0051f92dc603fadf722c048a9f30c7f7406 (patch)
treed81341d39a5ebf88d616a7312378f34afccadcb3
parent51829f1bcfafa46e2d2ec024c38e988f2d0f19e0 (diff)
downloadnuttx-b89ef0051f92dc603fadf722c048a9f30c7f7406.tar.gz
nuttx-b89ef0051f92dc603fadf722c048a9f30c7f7406.tar.bz2
nuttx-b89ef0051f92dc603fadf722c048a9f30c7f7406.zip
STM32 Kconfig: Fix STM32 UART7/8 kconfig names and UART DMA. Provided by Lorenz Meier
-rw-r--r--nuttx/ChangeLog2
-rw-r--r--nuttx/arch/arm/src/stm32/Kconfig68
2 files changed, 36 insertions, 34 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index 0088adb49..7b608cedd 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -5550,4 +5550,6 @@
(2013-9-13)
* fs/romfs/fs_romfsutil.c: Fix for filenames > 15 characters.
Provided by Lorenz Meier (2013-9-13).
+ * arch/arm/src/stm32/Kconfig: Fix STM32 UART7/8 kconfig names
+ and UART DMA. Provided by Lorenz Meier (2013-9-13).
diff --git a/nuttx/arch/arm/src/stm32/Kconfig b/nuttx/arch/arm/src/stm32/Kconfig
index b42fce8a3..9e9db86b1 100644
--- a/nuttx/arch/arm/src/stm32/Kconfig
+++ b/nuttx/arch/arm/src/stm32/Kconfig
@@ -2284,7 +2284,7 @@ config USART1_RS485_DIR_POLARITY
config USART1_RXDMA
bool "USART1 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA2
+ depends on STM32_USART1 && ((STM32STM32F10XX && STM32_DMA1) || (!STM32_STM32F10XX && STM32_DMA2))
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
@@ -2309,7 +2309,7 @@ config USART2_RS485_DIR_POLARITY
config USART2_RXDMA
bool "USART2 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA1
+ depends on STM32_USART2 && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
@@ -2334,7 +2334,7 @@ config USART3_RS485_DIR_POLARITY
config USART3_RXDMA
bool "USART3 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA1
+ depends on STM32_USART3 && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
@@ -2359,7 +2359,7 @@ config UART4_RS485_DIR_POLARITY
config UART4_RXDMA
bool "UART4 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA1
+ depends on STM32_UART4 && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
@@ -2384,7 +2384,7 @@ config UART5_RS485_DIR_POLARITY
config UART5_RXDMA
bool "UART5 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA1
+ depends on STM32_UART5 && STM32_DMA1
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
@@ -2409,63 +2409,63 @@ config USART6_RS485_DIR_POLARITY
config USART6_RXDMA
bool "USART6 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA2
+ depends on STM32_USART6 && STM32_DMA2
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
-config USART7_RS485
- bool "RS-485 on USART7"
+config UART7_RS485
+ bool "RS-485 on UART7"
default n
- depends on STM32_USART7
+ depends on STM32_UART7
---help---
- Enable RS-485 interface on USART7. Your board config will have to
- provide GPIO_USART7_RS485_DIR pin definition. Currently it cannot be
- used with USART7_RXDMA.
+ Enable RS-485 interface on UART7. Your board config will have to
+ provide GPIO_UART7_RS485_DIR pin definition. Currently it cannot be
+ used with UART7_RXDMA.
-config USART7_RS485_DIR_POLARITY
- int "USART7 RS-485 DIR pin polarity"
+config UART7_RS485_DIR_POLARITY
+ int "UART7 RS-485 DIR pin polarity"
default 1
range 0 1
- depends on USART7_RS485
+ depends on UART7_RS485
---help---
- Polarity of DIR pin for RS-485 on USART7. Set to state on DIR pin which
+ Polarity of DIR pin for RS-485 on UART7. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
-config USART7_RXDMA
- bool "USART7 Rx DMA"
+config UART7_RXDMA
+ bool "UART7 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA2
+ depends on STM32_UART7 && STM32_DMA2
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
-config USART8_RS485
- bool "RS-485 on USART8"
+config UART8_RS485
+ bool "RS-485 on UART8"
default n
- depends on STM32_USART8
+ depends on STM32_UART8
---help---
- Enable RS-485 interface on USART8. Your board config will have to
- provide GPIO_USART8_RS485_DIR pin definition. Currently it cannot be
- used with USART8_RXDMA.
+ Enable RS-485 interface on UART8. Your board config will have to
+ provide GPIO_UART8_RS485_DIR pin definition. Currently it cannot be
+ used with UART8_RXDMA.
-config USART8_RS485_DIR_POLARITY
- int "USART8 RS-485 DIR pin polarity"
+config UART8_RS485_DIR_POLARITY
+ int "UART8 RS-485 DIR pin polarity"
default 1
range 0 1
- depends on USART8_RS485
+ depends on UART8_RS485
---help---
- Polarity of DIR pin for RS-485 on USART8. Set to state on DIR pin which
+ Polarity of DIR pin for RS-485 on UART8. Set to state on DIR pin which
enables TX (0 - low / nTXEN, 1 - high / TXEN).
-config USART8_RXDMA
- bool "USART8 Rx DMA"
+config UART8_RXDMA
+ bool "UART8 Rx DMA"
default n
- depends on STM32_STM32F40XX && STM32_DMA2
+ depends on STM32_UART8 && STM32_DMA2
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
config SERIAL_TERMIOS
bool "Serial driver TERMIOS supported"
- depends on STM32_USART1 || STM32_USART2 || STM32_USART3 || STM32_UART4 || STM32_UART5 || STM32_USART6 || STM32_USART7 || STM32_USART8
+ depends on STM32_USART1 || STM32_USART2 || STM32_USART3 || STM32_UART4 || STM32_UART5 || STM32_USART6 || STM32_UART7 || STM32_UART8
default n
---help---
Serial driver supports termios.h interfaces (tcsetattr, tcflush, etc.).
@@ -2474,7 +2474,7 @@ config SERIAL_TERMIOS
config SERIAL_DISABLE_REORDERING
bool "Disable reordering of ttySx devices."
- depends on STM32_USART1 || STM32_USART2 || STM32_USART3 || STM32_UART4 || STM32_UART5 || STM32_USART6 || STM32_USART7 || STM32_USART8
+ depends on STM32_USART1 || STM32_USART2 || STM32_USART3 || STM32_UART4 || STM32_UART5 || STM32_USART6 || STM32_UART7 || STM32_UART8
default n
---help---
NuttX per default reorders the serial ports (/dev/ttySx) so that the