soc: stm32: Adds support for STM32F401XD variants

Introduces config file entries for STM32F401XD variants. The
STM32F401XD family is related to the STM32F401XE family but with a
reduced flash memory.

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
This commit is contained in:
Ricardo Rivera-Matos 2025-04-18 12:01:26 -05:00 committed by Benjamin Cabé
commit 2b553ba74f
3 changed files with 17 additions and 0 deletions

View file

@ -43,6 +43,7 @@ family:
- name: stm32f4x
socs:
- name: stm32f401xc
- name: stm32f401xd
- name: stm32f401xe
- name: stm32f405xx
- name: stm32f407xx

View file

@ -0,0 +1,11 @@
# ST STM32F401xD MCU configuration options
# Copyright (c) 2025 Cirrus Logic, Inc.
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32F401XD
config NUM_IRQS
default 85
endif # SOC_STM32F401XD

View file

@ -14,6 +14,10 @@ config SOC_STM32F401XC
bool
select SOC_SERIES_STM32F4X
config SOC_STM32F401XD
bool
select SOC_SERIES_STM32F4X
config SOC_STM32F401XE
bool
select SOC_SERIES_STM32F4X
@ -100,6 +104,7 @@ config SOC_STM32F479XX
config SOC
default "stm32f401xc" if SOC_STM32F401XC
default "stm32f401xd" if SOC_STM32F401XD
default "stm32f401xe" if SOC_STM32F401XE
default "stm32f405xx" if SOC_STM32F405XX
default "stm32f407xx" if SOC_STM32F407XE