DMA clock has to be enabled, too
This commit is contained in:
parent
99a5f2bda2
commit
7e9917a8f5
|
@ -22,6 +22,7 @@ static void clock_setup(void)
|
||||||
/* Enable clocks for peripherals. */
|
/* Enable clocks for peripherals. */
|
||||||
rcc_periph_clock_enable(RCC_USART2);
|
rcc_periph_clock_enable(RCC_USART2);
|
||||||
rcc_periph_clock_enable(RCC_ADC1);
|
rcc_periph_clock_enable(RCC_ADC1);
|
||||||
|
rcc_periph_clock_enable(RCC_DMA);
|
||||||
rcc_periph_clock_enable(RCC_TIM21);
|
rcc_periph_clock_enable(RCC_TIM21);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue