From d8e92755d43cf3b8c365449af8a095b3c2b6f1f3 Mon Sep 17 00:00:00 2001 From: true Date: Sat, 21 Oct 2023 04:45:40 -0700 Subject: [PATCH] Do not enable unused clocks Not using DMA anymore as it wasn't working right with ADC, and it's the only thing we would have used it for. --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index d4b3d31..7edc5a3 100644 --- a/src/main.c +++ b/src/main.c @@ -70,9 +70,8 @@ static inline void clk_init() LL_IOP_GRP1_PERIPH_GPIOB | LL_IOP_GRP1_PERIPH_GPIOF; - RCC->AHBENR = LL_AHB1_GRP1_PERIPH_DMA1; RCC->APBENR1 = LL_APB1_GRP1_PERIPH_TIM3; - RCC->APBENR2 = LL_APB1_GRP2_PERIPH_ADC1 | LL_APB1_GRP2_PERIPH_SYSCFG; + RCC->APBENR2 = LL_APB1_GRP2_PERIPH_ADC1; } static inline void systick_init()