stm32f1: spi: use SPI mode 0 instead of SPI mode 3

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent 6defd2365c
commit a53484051a
  1. 4
      source/platform/stm32f1/spi.c

@ -20,8 +20,8 @@ static void stm32f1_spi_init(void)
spi_reset(SPI1);
spi_init_master(SPI1,
SPI_CR1_BAUDRATE_FPCLK_DIV_64,
SPI_CR1_CPOL_CLK_TO_1_WHEN_IDLE,
SPI_CR1_CPHA_CLK_TRANSITION_2,
SPI_CR1_CPOL_CLK_TO_0_WHEN_IDLE,
SPI_CR1_CPHA_CLK_TRANSITION_1,
SPI_CR1_DFF_8BIT,
SPI_CR1_MSBFIRST);
spi_enable_software_slave_management(SPI1);

Loading…
Cancel
Save