soc/arm/st_stm32: Add additional stm32g0 socs

Add soc configuration for g05x and g0bx socs.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
Thomas Stranger 2020-12-30 20:44:29 +01:00 committed by Carles Cufí
commit c743beec64
9 changed files with 88 additions and 6 deletions

View file

@ -0,0 +1,14 @@
# STMicroelectronics STM32G030xx MCU
# Copyright (c) 2020 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G030XX
config SOC
default "stm32g030xx"
config NUM_IRQS
default 29
endif # SOC_STM32G030XX

View file

@ -6,11 +6,9 @@
if SOC_STM32G031XX
config SOC
string
default "stm32g031xx"
config NUM_IRQS
int
default 30
endif # SOC_STM32G031XX

View file

@ -0,0 +1,14 @@
# STMicroelectronics STM32G050xx MCU
# Copyright (c) 2020 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G050XX
config SOC
default "stm32g050xx"
config NUM_IRQS
default 29
endif # SOC_STM32G050XX

View file

@ -0,0 +1,14 @@
# STMicroelectronics STM32G051xx MCU
# Copyright (c) 2020 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G051XX
config SOC
default "stm32g051xx"
config NUM_IRQS
default 30
endif # SOC_STM32G051XX

View file

@ -6,11 +6,9 @@
if SOC_STM32G070XX
config SOC
string
default "stm32g070xx"
config NUM_IRQS
int
default 30
endif # SOC_STM32G070XX

View file

@ -1,4 +1,4 @@
# STMicroelectronics STM32G071RB MCU
# STMicroelectronics STM32G071xx MCU
# Copyright (c) 2019 Philippe Retornaz <philippe@shapescale.com>
# Copyright (c) 2019 STMicroelectronics
@ -10,6 +10,6 @@ config SOC
default "stm32g071xx"
config NUM_IRQS
default 32
default 31
endif # SOC_STM32G071XX

View file

@ -0,0 +1,14 @@
# STMicroelectronics STM32G0B0xx MCU
# Copyright (c) 2020 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G0B0XX
config SOC
default "stm32g0b0xx"
config NUM_IRQS
default 30
endif # SOC_STM32G0B0XX

View file

@ -0,0 +1,14 @@
# STMicroelectronics STM32G0B1xx MCU
# Copyright (c) 2020 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G0B1XX
config SOC
default "stm32g0b1xx"
config NUM_IRQS
default 31
endif # SOC_STM32G0B1XX

View file

@ -2,19 +2,35 @@
# Copyright (c) 2019 Philippe Retornaz <philippe@shapescale.com>
# Copyright (c) 2019 STMicroelectronics
# Copyright (c) 2020 Thomas Stranger
# SPDX-License-Identifier: Apache-2.0
choice
prompt "STM32G0x MCU Selection"
depends on SOC_SERIES_STM32G0X
config SOC_STM32G030XX
bool "STM32G030XX"
config SOC_STM32G031XX
bool "STM32G031XX"
config SOC_STM32G050XX
bool "STM32G050XX"
config SOC_STM32G051XX
bool "STM32G051XX"
config SOC_STM32G070XX
bool "STM32G070XX"
config SOC_STM32G071XX
bool "STM32G071XX"
config SOC_STM32G0B0XX
bool "STM32G0B0XX"
config SOC_STM32G0B1XX
bool "STM32G0B1XX"
endchoice