stm32f1: It's only necessary to program the CR1 register during SPI init

Only set the CR1 register during spi_prepare().

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-12-30 22:38:31 -05:00
parent c8e04274ad
commit 6e18af7057
3 changed files with 9 additions and 11 deletions

View File

@@ -112,8 +112,6 @@ void adc_config(void)
void spi_config(void)
{
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_SPI2);
LL_SPI_SetNSSMode(SPI2, LL_SPI_NSS_SOFT);
LL_SPI_SetMode(SPI2, LL_SPI_MODE_MASTER);
}
void io_config(void)