soc: st: stm32: add soc for stm32c071

select soc for stm32c071 and irq configuration

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
This commit is contained in:
Fabrice DJIATSA 2024-12-06 11:07:55 +01:00 committed by Benjamin Cabé
commit 12703bf633
3 changed files with 18 additions and 1 deletions

View file

@ -5,6 +5,7 @@ family:
socs:
- name: stm32c011xx
- name: stm32c031xx
- name: stm32c071xx
- name: stm32f0x
socs:
- name: stm32f030x6

View file

@ -0,0 +1,11 @@
# STMicroelectronics STM32C071xx MCU
# Copyright (c) 2024 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32C071XX
config NUM_IRQS
default 29
endif # SOC_STM32C071XX

View file

@ -10,14 +10,19 @@ config SOC_SERIES_STM32C0X
config SOC_SERIES
default "stm32c0x" if SOC_SERIES_STM32C0X
config SOC_STM32C011XX
bool
select SOC_SERIES_STM32C0X
config SOC_STM32C031XX
bool
select SOC_SERIES_STM32C0X
config SOC_STM32C011XX
config SOC_STM32C071XX
bool
select SOC_SERIES_STM32C0X
config SOC
default "stm32c011xx" if SOC_STM32C011XX
default "stm32c031xx" if SOC_STM32C031XX
default "stm32c071xx" if SOC_STM32C071XX