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:
parent
4d7d9de342
commit
d9c00b4e68
4 changed files with 35 additions and 0 deletions
22
arch/arm/soc/st_stm32/stm32f0/Kconfig.defconfig.stm32f072xb
Normal file
22
arch/arm/soc/st_stm32/stm32f0/Kconfig.defconfig.stm32f072xb
Normal 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
|
|
@ -12,6 +12,9 @@ depends on SOC_SERIES_STM32F0X
|
|||
config SOC_STM32F030X8
|
||||
bool "STM32F030X8"
|
||||
|
||||
config SOC_STM32F072XB
|
||||
bool "STM32F072XB"
|
||||
|
||||
config SOC_STM32F091XC
|
||||
bool "STM32F091XC"
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
7
dts/arm/st/stm32f072.dtsi
Normal file
7
dts/arm/st/stm32f072.dtsi
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2017 BayLibre, SAS
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32f0.dtsi>
|
Loading…
Add table
Add a link
Reference in a new issue