DMA clock has to be enabled, too

This commit is contained in:
Thomas Kolb 2023-10-01 20:33:44 +02:00
parent 99a5f2bda2
commit 7e9917a8f5
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ static void clock_setup(void)
/* Enable clocks for peripherals. */
rcc_periph_clock_enable(RCC_USART2);
rcc_periph_clock_enable(RCC_ADC1);
rcc_periph_clock_enable(RCC_DMA);
rcc_periph_clock_enable(RCC_TIM21);
}