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:
David Lamparter 2018-07-25 10:55:47 +02:00 committed by Anas Nashif
commit c4703661e6
3 changed files with 38 additions and 0 deletions

View 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

View file

@ -19,6 +19,9 @@ config SOC_STM32L496XG
config SOC_STM32L432XC
bool "STM32L432XC"
config SOC_STM32L433XC
bool "STM32L433XC"
config SOC_STM32L475XG
bool "STM32L475XG"

View file

@ -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