arm: stm32f4: Add basic support for STM32F413

Add necessary Kconfig and minimal device tree in order to support
STM32F413xH variants as found on the Nucleo STM32F413 board.

Origin: Original

Change-Id: I60230c240d6acb610f16a02c62048d448476e9c5
Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
This commit is contained in:
Florian Vaussard 2017-04-28 10:14:40 +02:00 committed by Anas Nashif
commit 0b9f6a25ed
4 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Kconfig - ST STM32F413XH MCU configuration options
#
# Copyright (c) 2017 Florian Vaussard, HEIG-VD
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_STM32F413XH
config SOC
string
default stm32f413xx
config NUM_IRQS
int
default 102
endif # SOC_STM32F413XH

View file

@ -18,6 +18,9 @@ config SOC_STM32F407XG
config SOC_STM32F411XE config SOC_STM32F411XE
bool "STM32F411XE" bool "STM32F411XE"
config SOC_STM32F413XH
bool "STM32F413XH"
config SOC_STM32F429XI config SOC_STM32F429XI
bool "STM32F429XI" bool "STM32F429XI"

View file

@ -30,6 +30,9 @@
#elif defined(CONFIG_SOC_STM32F411XE) #elif defined(CONFIG_SOC_STM32F411XE)
#define DT_FLASH_SIZE __SIZE_K(512) #define DT_FLASH_SIZE __SIZE_K(512)
#define DT_SRAM_SIZE __SIZE_K(128) #define DT_SRAM_SIZE __SIZE_K(128)
#elif defined(CONFIG_SOC_STM32F413XH)
#define DT_FLASH_SIZE __SIZE_K(1536)
#define DT_SRAM_SIZE __SIZE_K(320)
#elif defined(CONFIG_SOC_STM32F429XI) #elif defined(CONFIG_SOC_STM32F429XI)
#define DT_FLASH_SIZE __SIZE_K(2048) #define DT_FLASH_SIZE __SIZE_K(2048)
#define DT_SRAM_SIZE __SIZE_K(256) #define DT_SRAM_SIZE __SIZE_K(256)

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2017 Florian Vaussard, HEIG-VD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32f4.dtsi>