stm32f0: spi: divide clock rate by 2 instead of 64

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent 63525ac93b
commit 52956ae46d
  1. 2
      source/platform/stm32f0/spi.c

@ -18,7 +18,7 @@ static struct spi_ops stm32f0_spi_ops = {
static void stm32f0_spi_init(void) static void stm32f0_spi_init(void)
{ {
spi_set_master_mode(SPI1); spi_set_master_mode(SPI1);
spi_set_baudrate_prescaler(SPI1, SPI_CR1_BR_FPCLK_DIV_64); spi_set_baudrate_prescaler(SPI1, SPI_CR1_BR_FPCLK_DIV_2);
spi_set_clock_polarity_0(SPI1); spi_set_clock_polarity_0(SPI1);
spi_set_clock_phase_0(SPI1); spi_set_clock_phase_0(SPI1);
spi_set_full_duplex_mode(SPI1); spi_set_full_duplex_mode(SPI1);

Loading…
Cancel
Save