From 1db6f929a2e152129024ff6cb9055270b30014ac Mon Sep 17 00:00:00 2001 From: Pieter du Preez Date: Tue, 24 Dec 2019 15:51:28 -0600 Subject: [PATCH] arch/arm/src/stm32l4/Kconfig: Fixed conditional config for STM32L4_STM32L432XX and STM32L4_STM32L442XX archs. The wrong spelling of STM32L4_STM32L432XX and STM32L4_STM32L442XX, caused the following three peripherals to be available although they are not supported by these architectures: USART3, SPI2, and I2C1. These were available for selection in menuconfig and caused compiler errors when selected. This patch replaces the STM32L4_L432XX and STM32L4_L442XX items with STM32L4_STM32L432XX and STM32L4_STM32L442XX. --- arch/arm/src/stm32l4/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/stm32l4/Kconfig b/arch/arm/src/stm32l4/Kconfig index 56cf44bce0..d79508364d 100644 --- a/arch/arm/src/stm32l4/Kconfig +++ b/arch/arm/src/stm32l4/Kconfig @@ -477,7 +477,7 @@ config STM32L4_STM32L4X3 select ARCH_HAVE_FPU select STM32L4_HAVE_USART1 select STM32L4_HAVE_USART2 - select STM32L4_HAVE_USART3 if !(STM32L4_L432XX || STM32L4_L442XX) + select STM32L4_HAVE_USART3 if !(STM32L4_STM32L432XX || STM32L4_STM32L442XX) select STM32L4_HAVE_LPTIM1 select STM32L4_HAVE_LPTIM2 select STM32L4_HAVE_COMP @@ -1385,7 +1385,7 @@ config STM32L4_LCD config STM32L4_SPI2 bool "SPI2" default n - depends on !(STM32L4_L432XX || STM32L4_L442XX) + depends on !(STM32L4_STM32L432XX || STM32L4_STM32L442XX) select SPI select STM32L4_SPI @@ -1431,7 +1431,7 @@ config STM32L4_I2C1 config STM32L4_I2C2 bool "I2C2" default n - depends on !(STM32L4_L432XX || STM32L4_L442XX) + depends on !(STM32L4_STM32L432XX || STM32L4_STM32L442XX) select STM32L4_I2C config STM32L4_I2C3