Switched to LL

This commit is contained in:
Attila Body 2020-11-30 15:58:52 +01:00
parent 4d63ceced3
commit fe332dea5d
64 changed files with 15308 additions and 37631 deletions

View file

@ -38,13 +38,14 @@
void MX_DMA_Init(void)
{
/* Init with LL driver */
/* DMA controller clock enable */
__HAL_RCC_DMA1_CLK_ENABLE();
LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_DMA1);
/* DMA interrupt init */
/* DMA1_Channel3_IRQn interrupt configuration */
HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn);
NVIC_SetPriority(DMA1_Channel3_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(),0, 0));
NVIC_EnableIRQ(DMA1_Channel3_IRQn);
}