summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/Kconfig
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-04-01 13:43:31 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-04-01 13:43:31 +0000
commite3fe81779352589122b14c80287122aef30a2e14 (patch)
treeb023368884367ed0be578090c93bff4047a6cc78 /nuttx/arch/arm/src/stm32/Kconfig
parent8e9c9c4fd33836b5504ede9cacdb111d6877ef1b (diff)
downloadnuttx-e3fe81779352589122b14c80287122aef30a2e14.tar.gz
nuttx-e3fe81779352589122b14c80287122aef30a2e14.tar.bz2
nuttx-e3fe81779352589122b14c80287122aef30a2e14.zip
Add support for STM32 F427/437 chips. From Mike Smith
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5807 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/Kconfig')
-rw-r--r--nuttx/arch/arm/src/stm32/Kconfig110
1 files changed, 109 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/Kconfig b/nuttx/arch/arm/src/stm32/Kconfig
index 6bcea16b1..2611fc4f0 100644
--- a/nuttx/arch/arm/src/stm32/Kconfig
+++ b/nuttx/arch/arm/src/stm32/Kconfig
@@ -233,6 +233,24 @@ config ARCH_CHIP_STM32F407IG
select ARCH_CORTEXM4
select STM32_STM32F40XX
+config ARCH_CHIP_STM32F427V
+ bool "STM32F427V"
+ select ARCH_CORTEXM4
+ select STM32_STM32F40XX
+ select STM32_STM32F427
+
+config ARCH_CHIP_STM32F427Z
+ bool "STM32F427Z"
+ select ARCH_CORTEXM4
+ select STM32_STM32F40XX
+ select STM32_STM32F427
+
+config ARCH_CHIP_STM32F427I
+ bool "STM32F427I"
+ select ARCH_CORTEXM4
+ select STM32_STM32F40XX
+ select STM32_STM32F427
+
endchoice
config STM32_STM32F10XX
@@ -256,6 +274,10 @@ config STM32_STM32F30XX
config STM32_STM32F40XX
bool
+# This is really 427/437, but we treat the two the same.
+config STM32_STM32F427
+ bool
+
config STM32_DFU
bool "DFU bootloader"
default n
@@ -439,6 +461,27 @@ config STM32_SPI3
select SPI
select STM32_SPI
+config STM32_SPI4
+ bool "SPI4"
+ default n
+ depends on STM32_STM32F427
+ select SPI
+ select STM32_SPI
+
+config STM32_SPI5
+ bool "SPI5"
+ default n
+ depends on STM32_STM32F427
+ select SPI
+ select STM32_SPI
+
+config STM32_SPI6
+ bool "SPI6"
+ default n
+ depends on STM32_STM32F427
+ select SPI
+ select STM32_SPI
+
config STM32_SYSCFG
bool "SYSCFG"
default y
@@ -568,6 +611,20 @@ config STM32_USART6
select ARCH_HAVE_USART6
select STM32_USART
+config STM32_UART7
+ bool "UART7"
+ default n
+ depends on STM32_STM32F427
+ select ARCH_HAVE_UART7
+ select STM32_USART
+
+config STM32_UART8
+ bool "UART8"
+ default n
+ depends on STM32_STM32F427
+ select ARCH_HAVE_UART8
+ select STM32_USART
+
config STM32_USB
bool "USB Device"
default n
@@ -776,6 +833,7 @@ endmenu
config STM32_FLASH_PREFETCH
bool "Enable FLASH Pre-fetch"
depends on STM32_STM32F20XX || STM32_STM32F40XX
+ default y if STM32_STM32F427
default n
---help---
Enable FLASH prefetch and F2 and F4 parts (FLASH pre-fetch is always enabled
@@ -2044,9 +2102,59 @@ config USART6_RXDMA
---help---
In high data rate usage, Rx DMA may eliminate Rx overrun errors
+config USART7_RS485
+ bool "RS-485 on USART7"
+ default n
+ depends on STM32_USART7
+ ---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.
+
+config USART7_RS485_DIR_POLARITY
+ int "USART7 RS-485 DIR pin polarity"
+ default 1
+ range 0 1
+ depends on USART7_RS485
+ ---help---
+ Polarity of DIR pin for RS-485 on USART7. Set to state on DIR pin which
+ enables TX (0 - low / nTXEN, 1 - high / TXEN).
+
+config USART7_RXDMA
+ bool "USART7 Rx DMA"
+ default n
+ depends on STM32_STM32F40XX && STM32_DMA2
+ ---help---
+ In high data rate usage, Rx DMA may eliminate Rx overrun errors
+
+config USART8_RS485
+ bool "RS-485 on USART8"
+ default n
+ depends on STM32_USART8
+ ---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.
+
+config USART8_RS485_DIR_POLARITY
+ int "USART8 RS-485 DIR pin polarity"
+ default 1
+ range 0 1
+ depends on USART8_RS485
+ ---help---
+ Polarity of DIR pin for RS-485 on USART8. Set to state on DIR pin which
+ enables TX (0 - low / nTXEN, 1 - high / TXEN).
+
+config USART8_RXDMA
+ bool "USART8 Rx DMA"
+ default n
+ depends on STM32_STM32F40XX && 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
+ depends on STM32_USART1 || STM32_USART2 || STM32_USART3 || STM32_UART4 || STM32_UART5 || STM32_USART6 || STM32_USART7 || STM32_USART8
default n
---help---
Serial driver supports termios.h interfaces (tcsetattr, tcflush, etc.).