cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F30x DMA configuration

BTrem.1
Senior II

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.

1 REPLY 1
TDK
Guru

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".