stm32: Add peripheral support for STM32L432.

The L432 does not have: GPIOD, TIM3, SPI2, ADC dual mode operation, 2-banks
flash.
This commit is contained in:
boochow
2018-12-01 10:38:29 +09:00
committed by Damien George
parent 1a8baad7ca
commit 9d3372bded
6 changed files with 37 additions and 10 deletions

View File

@@ -94,7 +94,7 @@ STATIC byte flash_cache_mem[0x4000] __attribute__((aligned(4))); // 16k
#define FLASH_MEM_SEG1_START_ADDR (0x08020000) // sector 1
#define FLASH_MEM_SEG1_NUM_BLOCKS (256) // Sector 1: 128k / 512b = 256 blocks
#elif defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L496xx)
#elif defined(STM32L432xx) || defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L496xx)
// The STM32L475/6 doesn't have CCRAM, so we use the 32K SRAM2 for this, although
// actual location and size is defined by the linker script.