In arch/arm/src/stm32/Kconfig when the CPU is a STM32F4, some STM32_HAVE_xx with xx = {OTGFS, TIM3, TIM4, SPI3, I2S3, I2C3} are selected by default. But for F410 these peripherals are absent. This change add tests to check if the target CPU is an F410 or not and selects according to the situation. This also adds a select for STM32_HAVE_DAC1 present on this STM32 flavor.

This commit is contained in:
gwenhael.goavec
2017-07-06 09:52:21 -06:00
committed by Gregory Nutt
parent 94f26828e9
commit 15b85738e7
+7 -6
View File
@@ -1525,14 +1525,14 @@ config STM32_STM32F37XX
config STM32_STM32F40XX
bool
default n
select STM32_HAVE_OTGFS
select STM32_HAVE_TIM3
select STM32_HAVE_TIM4
select STM32_HAVE_OTGFS if !STM32_STM32F410
select STM32_HAVE_TIM3 if !STM32_STM32F410
select STM32_HAVE_TIM4 if !STM32_STM32F410
select STM32_HAVE_SPI2
select STM32_HAVE_SPI3
select STM32_HAVE_I2S3
select STM32_HAVE_SPI3 if !STM32_STM32F410
select STM32_HAVE_I2S3 if !STM32_STM32F410
select STM32_HAVE_I2C2
select STM32_HAVE_I2C3
select STM32_HAVE_I2C3 if !STM32_STM32F410
config STM32_STM32F401
bool
@@ -1557,6 +1557,7 @@ config STM32_STM32F410
select STM32_HAVE_TIM9
select STM32_HAVE_TIM11
select STM32_HAVE_SPI5
select STM32_HAVE_DAC1
config STM32_STM32F411
bool