|
|
@ -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); |
|
|
|