arch: arm: soc: provide support for stm32f072

Support the ST STM32F072xB SoC.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Neil Armstrong 2017-09-08 15:11:56 +02:00 committed by Kumar Gala
commit d9c00b4e68
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# Kconfig - ST Microelectronics STM32F072XB MCU
#
# Copyright (c) 2017 BayLibre, SAS
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_STM32F072XB
config SOC
string
default stm32f072xb
config FLASH_PAGE_SIZE
hex
default 0x800
config NUM_IRQS
int
default 32
endif # SOC_STM32F072XB

View file

@ -12,6 +12,9 @@ depends on SOC_SERIES_STM32F0X
config SOC_STM32F030X8
bool "STM32F030X8"
config SOC_STM32F072XB
bool "STM32F072XB"
config SOC_STM32F091XC
bool "STM32F091XC"

View file

@ -11,6 +11,9 @@
#if defined(CONFIG_SOC_STM32F030X8)
#define DT_FLASH_SIZE __SIZE_K(64)
#define DT_SRAM_SIZE __SIZE_K(8)
#elif defined(CONFIG_SOC_STM32F072XB)
#define DT_FLASH_SIZE __SIZE_K(128)
#define DT_SRAM_SIZE __SIZE_K(16)
#elif defined(CONFIG_SOC_STM32F091XC)
#define DT_FLASH_SIZE __SIZE_K(256)
#define DT_SRAM_SIZE __SIZE_K(32)

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2017 BayLibre, SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f0.dtsi>