2020-05-24 08:00 AM
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.
2020-05-24 08:33 AM
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.