soc: v2: stm32: Migrate STM32F2 series
Port STM32F2 series to HW model V2 Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
committed by
Carles Cufi
parent
2096fd4652
commit
b987093a80
@@ -1,16 +0,0 @@
|
||||
# ST Microelectronics stm32f2 MCU line
|
||||
|
||||
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
choice
|
||||
prompt "STM32F2X MCU Selection"
|
||||
depends on SOC_SERIES_STM32F2X
|
||||
|
||||
config SOC_STM32F207XX
|
||||
bool "STM32F207XX"
|
||||
|
||||
config SOC_STM32F205XX
|
||||
bool "STM32F205XX"
|
||||
|
||||
endchoice
|
||||
@@ -24,6 +24,10 @@ family:
|
||||
- name: stm32f103xe
|
||||
- name: stm32f105xc
|
||||
- name: stm32f107xc
|
||||
- name: stm32f2x
|
||||
socs:
|
||||
- name: stm32f205xx
|
||||
- name: stm32f207xx
|
||||
- name: stm32f3x
|
||||
socs:
|
||||
- name: stm32f302x8
|
||||
|
||||
@@ -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 "")
|
||||
@@ -1,16 +1,12 @@
|
||||
# ST Microelectronics STM32F2X MCU series
|
||||
# STMicroelectronics STM32F2X MCU series
|
||||
|
||||
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_STM32F2X
|
||||
bool "STM32F2x Series MCU"
|
||||
select ARM
|
||||
select CPU_CORTEX_M3
|
||||
select CPU_CORTEX_M_HAS_DWT
|
||||
select SOC_FAMILY_STM32
|
||||
select HAS_STM32CUBE
|
||||
select HAS_SWO
|
||||
select CPU_HAS_ARM_MPU
|
||||
help
|
||||
Enable support for stm32f2 MCU series
|
||||
@@ -1,4 +1,4 @@
|
||||
# ST Microelectronics STM32F2 MCU line
|
||||
# STMicroelectronics STM32F2 MCU line
|
||||
|
||||
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
@@ -7,9 +7,6 @@
|
||||
|
||||
if SOC_SERIES_STM32F2X
|
||||
|
||||
source "soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.defconfig.stm32f2*"
|
||||
|
||||
config SOC_SERIES
|
||||
default "stm32f2"
|
||||
rsource "Kconfig.defconfig.stm32f2*"
|
||||
|
||||
endif # SOC_SERIES_STM32F2X
|
||||
@@ -1,13 +1,10 @@
|
||||
# ST Microelectronics stm32f205 MCU
|
||||
# STMicroelectronics stm32f205 MCU
|
||||
|
||||
# Copyright (c) 2021 Manuel Forcen <manuforcen@gmail.com
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_STM32F205XX
|
||||
|
||||
config SOC
|
||||
default "STM32F205xx"
|
||||
|
||||
config NUM_IRQS
|
||||
default 81
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
# ST Microelectronics stm32f207 MCU
|
||||
# STMicroelectronics stm32f207 MCU
|
||||
|
||||
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_STM32F207XX
|
||||
|
||||
config SOC
|
||||
default "STM32F207xx"
|
||||
|
||||
config NUM_IRQS
|
||||
default 81
|
||||
|
||||
23
soc/st/stm32/stm32f2/Kconfig.soc
Normal file
23
soc/st/stm32/stm32f2/Kconfig.soc
Normal file
@@ -0,0 +1,23 @@
|
||||
# STMicroelectronics stm32f2 MCU line
|
||||
|
||||
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_STM32F2X
|
||||
bool
|
||||
select SOC_FAMILY_STM32
|
||||
|
||||
config SOC_SERIES
|
||||
default "stm32f2" if SOC_SERIES_STM32F2X
|
||||
|
||||
config SOC_STM32F205XX
|
||||
bool
|
||||
select SOC_SERIES_STM32F2X
|
||||
|
||||
config SOC_STM32F207XX
|
||||
bool
|
||||
select SOC_SERIES_STM32F2X
|
||||
|
||||
config SOC
|
||||
default "stm32f205xx" if SOC_STM32F205XX
|
||||
default "stm32f207xx" if SOC_STM32F207XX
|
||||
Reference in New Issue
Block a user