Skip to main content
BTrem.1
Senior
May 24, 2020
Question

STM32F30x DMA configuration

  • May 24, 2020
  • 1 reply
  • 471 views

I'm implementing two channels of DMA in my STM32F302x using Timer 2 in input capture mode. Do I really need the HAL_DMA_RegisterCallback callback function?

I'm using DMA interrupt mode so each channel has a DMA1_Channelx_IRQHandler that performs the task I need at the end of transfer. My callback functions are empty, other than toggling an LED for debug.

This topic has been closed for replies.

1 reply

TDK
Super User
May 24, 2020

If you don't need to do anything in the callback, then no need to set it up. It's optional and provided for convenience.

"If you feel a post has answered your question, please click ""Accept as Solution""."