Skip to content

Commit 53bf2eb

Browse files
committed
arch: arm: soc: provide support for stm32f072
Support the ST STM32F072xB SoC. Signed-off-by: Neil Armstrong <[email protected]>
1 parent 55d3ce1 commit 53bf2eb

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Kconfig - ST Microelectronics STM32F072XB MCU
2+
#
3+
# Copyright (c) 2017 BayLibre, SAS
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
if SOC_STM32F072XB
9+
10+
config SOC
11+
string
12+
default stm32f072xb
13+
14+
config FLASH_PAGE_SIZE
15+
hex
16+
default 0x800
17+
18+
config NUM_IRQS
19+
int
20+
default 32
21+
22+
endif # SOC_STM32F072XB

arch/arm/soc/st_stm32/stm32f0/Kconfig.soc

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ depends on SOC_SERIES_STM32F0X
1212
config SOC_STM32F030X8
1313
bool "STM32F030X8"
1414

15+
config SOC_STM32F072XB
16+
bool "STM32F072XB"
17+
1518
config SOC_STM32F091XC
1619
bool "STM32F091XC"
1720

dts/arm/st/mem.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#if defined(CONFIG_SOC_STM32F030X8)
1212
#define DT_FLASH_SIZE __SIZE_K(64)
1313
#define DT_SRAM_SIZE __SIZE_K(8)
14+
#elif defined(CONFIG_SOC_STM32F072XB)
15+
#define DT_FLASH_SIZE __SIZE_K(128)
16+
#define DT_SRAM_SIZE __SIZE_K(16)
1417
#elif defined(CONFIG_SOC_STM32F091XC)
1518
#define DT_FLASH_SIZE __SIZE_K(256)
1619
#define DT_SRAM_SIZE __SIZE_K(32)

dts/arm/st/stm32f072.dtsi

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2017 BayLibre, SAS
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/stm32f0.dtsi>

0 commit comments

Comments
 (0)