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:
parent
b581b87b86
commit
d8e92755d4
|
@ -70,9 +70,8 @@ static inline void clk_init()
|
||||||
LL_IOP_GRP1_PERIPH_GPIOB |
|
LL_IOP_GRP1_PERIPH_GPIOB |
|
||||||
LL_IOP_GRP1_PERIPH_GPIOF;
|
LL_IOP_GRP1_PERIPH_GPIOF;
|
||||||
|
|
||||||
RCC->AHBENR = LL_AHB1_GRP1_PERIPH_DMA1;
|
|
||||||
RCC->APBENR1 = LL_APB1_GRP1_PERIPH_TIM3;
|
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()
|
static inline void systick_init()
|
||||||
|
|
Loading…
Reference in New Issue