Question
Unregister or Disable UART DMA XferHalfCpltCallback anyone?
I've tried to disable the XferHalfCpltCallback when using UART DMA transmit without any luck. I believe that you cannot change the callbacks, or disable them.
Observations:
- When you call HAL_UART_Transmit_DMA(), the callbacks are set to predefined UART functions. This happens right before HAL_DMA_Start_IT() which then checks for NULL callbacks and decides whether to enable/disable the interrupts.
- The interrupts always get enabled and callbacks always get called.
- The HAL has code to disable the interrupt if a NULL callback is found, but they are never NULL per item 1.
- Calling HAL_DMA_UnRegisterCallback() is moot.
Ideas?
