cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_ADC_Start_DMA --> HAL_ADC_Start_DMA_IT

chaas
Associate
Posted on February 26, 2016 at 13:54

There should be two functions:

HAL_ADC_Start_DMA()

HAL_ADC_Start_DMA_IT()

If i want to use adc with dma i normaly dont want to use interrupts. But HAL_ADC_Start_DMA calls HAL_DMA_Start_IT() instead of HAL_DMA_Start().

#stm32-hal-adc-dma
1 REPLY 1
Nesrine M_O
Lead II
Posted on March 07, 2016 at 18:07

Hi haas.christian,

We suggest to use __HAL_DMA_DISABLE_IT interface to disable the interrupt of DMA if you don't want to use it

/* ### Disable DMA interrupts not used */
__HAL_DMA_DISABLE_IT(AdcHandle.DMA_Handle, DMA_IT_TC | DMA_IT_HT);

-Syrine-