soc: st: stm32: Migrate STM32C0 series

Port STM32C0 series to HW model v2

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
This commit is contained in:
Guillaume Gautier 2024-02-08 09:02:02 +01:00 committed by Jamie McCrae
parent ce6d493aa3
commit dbc5ed79f5
9 changed files with 24 additions and 24 deletions

View File

@ -1,13 +0,0 @@
# STMicroelectronics STM32C0 MCU line
# Copyright (c) 2023 Benjamin Björnsson <benjamin.bjornsson@gmail.com>
# SPDX-License-Identifier: Apache-2.0
choice
prompt "STM32C0x MCU Selection"
depends on SOC_SERIES_STM32C0X
config SOC_STM32C031XX
bool "STM32C031XX"
endchoice

View File

@ -1,6 +1,9 @@
family:
- name: st_stm32
series:
- name: stm32c0x
socs:
- name: stm32c031xx
- name: stm32f0x
socs:
- name: stm32f030x6

View File

@ -5,4 +5,6 @@ zephyr_sources(
soc.c
)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

View File

@ -4,13 +4,9 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32C0X
bool "STM32C0x Series MCU"
select ARM
select CPU_CORTEX_M0PLUS
select CPU_CORTEX_M_HAS_VTOR
select CPU_HAS_ARM_MPU
select SOC_FAMILY_STM32
select HAS_STM32CUBE
select CPU_CORTEX_M_HAS_SYSTICK
help
Enable support for STM32C0 MCU series

View File

@ -5,9 +5,6 @@
if SOC_SERIES_STM32C0X
source "soc/soc_legacy/arm/st_stm32/stm32c0/Kconfig.defconfig.stm32c0*"
config SOC_SERIES
default "stm32c0"
rsource "Kconfig.defconfig.stm32c0*"
endif # SOC_SERIES_STM32C0X

View File

@ -5,9 +5,6 @@
if SOC_STM32C031XX
config SOC
default "stm32c031xx"
config NUM_IRQS
default 29

View File

@ -0,0 +1,18 @@
# STMicroelectronics STM32C0 MCU line
# Copyright (c) 2023 Benjamin Björnsson <benjamin.bjornsson@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32C0X
bool
select SOC_FAMILY_STM32
config SOC_SERIES
default "stm32c0" if SOC_SERIES_STM32C0X
config SOC_STM32C031XX
bool
select SOC_SERIES_STM32C0X
config SOC
default "stm32c031xx" if SOC_STM32C031XX