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.
This commit is contained in:
true 2023-10-21 04:45:40 -07:00
parent b581b87b86
commit d8e92755d4
1 changed files with 1 additions and 2 deletions

View File

@ -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()