spi: avoid setting up clocks again as it conflicts with USART
This commit is contained in:
parent
f7db775316
commit
77c3e5f440
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ static struct spi_ops stm32f0_spi_ops = {
|
||||||
static void stm32f0_spi_init(void)
|
static void stm32f0_spi_init(void)
|
||||||
{
|
{
|
||||||
/* Set up clocks for SPI 1 */
|
/* Set up clocks for SPI 1 */
|
||||||
rcc_clock_setup_in_hsi_out_48mhz();
|
//rcc_clock_setup_in_hsi_out_48mhz();
|
||||||
rcc_periph_clock_enable(RCC_GPIOA);
|
//rcc_periph_clock_enable(RCC_GPIOA);
|
||||||
rcc_periph_clock_enable(RCC_GPIOB);
|
rcc_periph_clock_enable(RCC_GPIOB);
|
||||||
rcc_periph_clock_enable(RCC_SPI1);
|
rcc_periph_clock_enable(RCC_SPI1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue