soc: arm: st_stm32: stm32f0: Add support for STM32F031 and STM32F031X6

This commit adds the soc config for the STM32F031k6 and STM32F031X6.
Add the STM32F031k6 as choice to the Kconfig.soc.

Signed-off-by: Sebastian Schwabe <sebastian-schwabe@gmx.de>
This commit is contained in:
Sebastian Schwabe 2021-04-08 23:40:04 +02:00 committed by Maureen Helm
commit 98a6cbd80e
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# ST Microelectronics STM32F031X6 MCU
# Copyright (c) 2021 Sebastian Schwabe <sebastian.schwabe@mailbox.tu-dresden.de>
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32F031X6
config SOC
default "stm32f031x6"
config NUM_IRQS
default 28
endif # SOC_STM32F031X6

View file

@ -16,6 +16,9 @@ config SOC_STM32F030X8
config SOC_STM32F030XC config SOC_STM32F030XC
bool "STM32F030XC" bool "STM32F030XC"
config SOC_STM32F031X6
bool "STM32F031X6"
config SOC_STM32F051X8 config SOC_STM32F051X8
bool "STM32F051X8" bool "STM32F051X8"