From 0b277da5fa728378c24a610828c451a7bbc40c1f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 5 Mar 2018 18:40:45 -0600 Subject: [PATCH] arch/arm/src.stm32/Kconfig: Reduce redundancy in STM32F401 config settings. --- arch/arm/src/stm32/Kconfig | 53 +++--------------------- configs/nucleo-f4x1re/f401-nsh/defconfig | 1 - 2 files changed, 5 insertions(+), 49 deletions(-) diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig index 13ec49151bc..d22009df375 100644 --- a/arch/arm/src/stm32/Kconfig +++ b/arch/arm/src/stm32/Kconfig @@ -967,99 +967,51 @@ config ARCH_CHIP_STM32F373VC config ARCH_CHIP_STM32F401CB bool "STM32F401CB" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xBC - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401RB bool "STM32F401RB" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xBC - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401VB bool "STM32F401VB" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xBC - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401CC bool "STM32F401CC" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xBC - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401RC bool "STM32F401RC" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xBC - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401VC bool "STM32F401VC" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xBC - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401CD bool "STM32F401CD" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xDE - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401RD bool "STM32F401RD" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xDE - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401VD bool "STM32F401VD" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xDE - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401CE bool "STM32F401CE" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xDE - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401RE bool "STM32F401RE" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xDE - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F401VE bool "STM32F401VE" - select ARCH_CORTEXM4 - select STM32_STM32F4XXX select STM32_STM32F401xDE - select STM32_STM32F401 - select ARCH_HAVE_FPU config ARCH_CHIP_STM32F410RB bool "STM32F410RB" @@ -1622,14 +1574,19 @@ config STM32_STM32F4XXX config STM32_STM32F401xBC bool default n + select STM32_STM32F401 config STM32_STM32F401xDE bool default n + select STM32_STM32F401 config STM32_STM32F401 bool default n + select ARCH_CORTEXM4 + select ARCH_HAVE_FPU + select STM32_STM32F4XXX select STM32_HAVE_USART6 select STM32_HAVE_TIM1 select STM32_HAVE_TIM3 diff --git a/configs/nucleo-f4x1re/f401-nsh/defconfig b/configs/nucleo-f4x1re/f401-nsh/defconfig index 92dff8dde53..60d4c7ca00f 100644 --- a/configs/nucleo-f4x1re/f401-nsh/defconfig +++ b/configs/nucleo-f4x1re/f401-nsh/defconfig @@ -1,6 +1,5 @@ # CONFIG_ARCH_FPU is not set # CONFIG_NSH_ARGCAT is not set -# CONFIG_NSH_CMDOPT_DF_H is not set # CONFIG_NSH_CMDOPT_HEXDUMP is not set # CONFIG_NSH_CMDPARMS is not set # CONFIG_NSH_DISABLE_IFCONFIG is not set