Skip to main content
chaas
Visitor II
February 26, 2016
Question

HAL_ADC_Start_DMA --> HAL_ADC_Start_DMA_IT

  • February 26, 2016
  • 1 reply
  • 1205 views
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
This topic has been closed for replies.

1 reply

Nesrine M_O
Associate
March 7, 2016
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-