Skip to content

Commit 4b7e936

Browse files
ABOSTMnashif
authored andcommitted
drivers: spi: spi_ll_stm32: not all stm32l1 MCU have SPI_CR2_FRF
After update of stm32 cube l1 V1.10.3, SPI_CR2_FRF doesn't exist for all stm32L1 MCU, thus LL_SPI_SetStandard() is also not defined for all stm32l1 MCU. Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 3e2672b commit 4b7e936

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi_ll_stm32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ static int spi_stm32_configure(const struct device *dev,
557557
ll_func_set_fifo_threshold_8bit(spi);
558558
#endif
559559

560-
#ifndef CONFIG_SOC_SERIES_STM32F1X
560+
#if !defined(CONFIG_SOC_SERIES_STM32F1X) \
561+
&& (!defined(CONFIG_SOC_SERIES_STM32L1X) || defined(SPI_CR2_FRF))
561562
LL_SPI_SetStandard(spi, LL_SPI_PROTOCOL_MOTOROLA);
562563
#endif
563564

0 commit comments

Comments
 (0)