soc: st: add STM32L452XC
Adds STM32 L452 soc with L452xC variant. L452 has 160 KB SRAM; therefore, mpu mem config has been extended; IRQ number is based on 'stm32l452xx.h'. Signed-off-by: Georgij Cernysiov <g.cernysiov@elco-automation.de>
This commit is contained in:
parent
5478e82993
commit
3b77737208
5 changed files with 192 additions and 0 deletions
|
@ -57,6 +57,10 @@
|
|||
#define REGION_SRAM_0_SIZE REGION_64K
|
||||
#define REGION_SRAM_1_START 0x10000
|
||||
#define REGION_SRAM_1_SIZE REGION_64K
|
||||
#elif CONFIG_SRAM_SIZE == 160
|
||||
#define REGION_SRAM_0_SIZE REGION_128K
|
||||
#define REGION_SRAM_1_START 0x20000
|
||||
#define REGION_SRAM_1_SIZE REGION_32K
|
||||
#elif CONFIG_SRAM_SIZE == 192
|
||||
#define REGION_SRAM_0_SIZE REGION_128K
|
||||
#define REGION_SRAM_1_START 0x20000
|
||||
|
|
32
soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx
Normal file
32
soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Kconfig - ST Microelectronics STM32L452XX MCU
|
||||
#
|
||||
# Copyright (c) 2018 Georgij Cernysiov
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SOC_STM32L452XC
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "stm32l452xx"
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 85
|
||||
|
||||
if GPIO_STM32
|
||||
|
||||
config GPIO_STM32_PORTD
|
||||
default y
|
||||
|
||||
config GPIO_STM32_PORTE
|
||||
default y
|
||||
|
||||
config GPIO_STM32_PORTH
|
||||
default y
|
||||
|
||||
endif # GPIO_STM32
|
||||
|
||||
endif # SOC_STM32L452XC
|
||||
|
|
@ -22,6 +22,9 @@ config SOC_STM32L432XC
|
|||
config SOC_STM32L433XC
|
||||
bool "STM32L433XC"
|
||||
|
||||
config SOC_STM32L452XC
|
||||
bool "STM32L452XC"
|
||||
|
||||
config SOC_STM32L475XG
|
||||
bool "STM32L475XG"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue