cpu/stm32: add support for stm32g431rb

This commit is contained in:
Alexandre Abadie 2020-09-25 15:56:19 +02:00
parent f55031e65d
commit ef742cddb2
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 8 additions and 1 deletions

View File

@ -297,6 +297,10 @@ config CPU_MODEL_STM32G071RB
select CPU_FAM_G0
# STM32G4
config CPU_MODEL_STM32G431RB
bool
select CPU_FAM_G4
config CPU_MODEL_STM32G474RE
bool
select CPU_FAM_G4
@ -535,6 +539,7 @@ config CPU_MODEL
default "stm32g071rb" if CPU_MODEL_STM32G071RB
# STM32G4
default "stm32g431rb" if CPU_MODEL_STM32G431RB
default "stm32g474re" if CPU_MODEL_STM32G474RE
# STM32L0

View File

@ -187,7 +187,9 @@ else ifeq ($(STM32_TYPE), G)
endif
endif
ifeq ($(STM32_FAMILY), 4)
ifeq ($(STM32_MODEL), 474)
ifeq ($(STM32_MODEL), 431)
RAM_LEN = 32K
else ifeq ($(STM32_MODEL), 474)
RAM_LEN = 96K
CCMRAM_LEN = 32K
endif