arch: arm: soc: add STM32L433
The L433 chip is a superset of the L432, just grabbing a few additional interfaces (LCD, I2C2, USART3, SPI2, SDMMC). All the support/HAL files are already there, so enabling these is just a matter of build system setup. Tested on an application specific board (builds correctly and I2C2 works.) I unfortunately don't have a nucleo/discovery board to create a reference board for. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
f2bdee356b
commit
c4703661e6
3 changed files with 38 additions and 0 deletions
32
arch/arm/soc/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx
Normal file
32
arch/arm/soc/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Kconfig - ST Microelectronics STM32L433XX MCU
|
||||
#
|
||||
# Copyright (c) 2018 David Lamparter
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SOC_STM32L433XC
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "stm32l433xx"
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 83
|
||||
|
||||
if GPIO_STM32
|
||||
|
||||
config GPIO_STM32_PORTD
|
||||
def_bool y
|
||||
|
||||
config GPIO_STM32_PORTE
|
||||
default y
|
||||
|
||||
config GPIO_STM32_PORTH
|
||||
default y
|
||||
|
||||
endif # GPIO_STM32
|
||||
|
||||
endif # SOC_STM32L433XC
|
||||
|
|
@ -19,6 +19,9 @@ config SOC_STM32L496XG
|
|||
config SOC_STM32L432XC
|
||||
bool "STM32L432XC"
|
||||
|
||||
config SOC_STM32L433XC
|
||||
bool "STM32L433XC"
|
||||
|
||||
config SOC_STM32L475XG
|
||||
bool "STM32L475XG"
|
||||
|
||||
|
|
|
@ -121,6 +121,9 @@
|
|||
#elif defined(CONFIG_SOC_STM32L432XC)
|
||||
#define DT_FLASH_SIZE __SIZE_K(256)
|
||||
#define DT_SRAM_SIZE __SIZE_K(64)
|
||||
#elif defined(CONFIG_SOC_STM32L433XC)
|
||||
#define DT_FLASH_SIZE __SIZE_K(256)
|
||||
#define DT_SRAM_SIZE __SIZE_K(64)
|
||||
#else
|
||||
#error "Flash, RAM, and CCM sizes not defined for this chip"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue