From b19f47d2b113f1584e940b7da5d156d27a862296 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Fri, 17 Feb 2023 16:58:42 +0100 Subject: [PATCH] soc: arm: st_stm32: stm32f0: add kconfig for stm32f042x6 Add Kconfig for STMF042x6 to support the Nucleo F042K6. Signed-off-by: Guillaume Gautier --- .../st_stm32/stm32f0/Kconfig.defconfig.stm32f042x6 | 14 ++++++++++++++ soc/arm/st_stm32/stm32f0/Kconfig.soc | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f042x6 diff --git a/soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f042x6 b/soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f042x6 new file mode 100644 index 00000000000..fe4a08966b5 --- /dev/null +++ b/soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f042x6 @@ -0,0 +1,14 @@ +# ST Microelectronics STM32F042X6 MCU + +# Copyright (c) 2023 STMicroelectronics +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32F042X6 + +config SOC + default "stm32f042x6" + +config NUM_IRQS + default 32 + +endif # SOC_STM32F042X6 diff --git a/soc/arm/st_stm32/stm32f0/Kconfig.soc b/soc/arm/st_stm32/stm32f0/Kconfig.soc index 59d93afb899..728ea4a10c3 100644 --- a/soc/arm/st_stm32/stm32f0/Kconfig.soc +++ b/soc/arm/st_stm32/stm32f0/Kconfig.soc @@ -22,6 +22,9 @@ config SOC_STM32F030XC config SOC_STM32F031X6 bool "STM32F031X6" +config SOC_STM32F042X6 + bool "STM32F042X6" + config SOC_STM32F051X8 bool "STM32F051X8"