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 <alexandre.bourdiol@st.com>
This commit is contained in:
parent
3e2672b13f
commit
4b7e9368bc
1 changed files with 2 additions and 1 deletions
|
@ -557,7 +557,8 @@ static int spi_stm32_configure(const struct device *dev,
|
|||
ll_func_set_fifo_threshold_8bit(spi);
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SOC_SERIES_STM32F1X
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32F1X) \
|
||||
&& (!defined(CONFIG_SOC_SERIES_STM32L1X) || defined(SPI_CR2_FRF))
|
||||
LL_SPI_SetStandard(spi, LL_SPI_PROTOCOL_MOTOROLA);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue