diff options
Diffstat (limited to 'src/stm32/spi.c')
-rw-r--r-- | src/stm32/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stm32/spi.c b/src/stm32/spi.c index 3afe342a..52ec69e1 100644 --- a/src/stm32/spi.c +++ b/src/stm32/spi.c @@ -79,8 +79,8 @@ spi_setup(uint32_t bus, uint8_t mode, uint32_t rate) gpio_peripheral(spi_bus[bus].mosi_pin, spi_bus[bus].function, 0); gpio_peripheral(spi_bus[bus].sck_pin, spi_bus[bus].function, 0); - // Configure CR2 on stm32f0 -#if CONFIG_MACH_STM32F0 || CONFIG_MACH_STM32G0 + // Configure CR2 on stm32 f0/g0/l4 +#if CONFIG_MACH_STM32F0 || CONFIG_MACH_STM32G0 || CONFIG_MACH_STM32L4 spi->CR2 = SPI_CR2_FRXTH | (7 << SPI_CR2_DS_Pos); #endif } |