From 7e9917a8f577b402dbec131e04681333969a5b7d Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 1 Oct 2023 20:33:44 +0200 Subject: [PATCH] DMA clock has to be enabled, too --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 7c2b327..6324436 100644 --- a/src/main.c +++ b/src/main.c @@ -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); }