What HAL callbacks are associated with rising/falling edges on TIM_CHx inputs?
I'm using an STM32G4 to measure a pulse width, and wanted to set up TIM1_CH1 for rising edges and TIM1_CH2 for falling edges. My plan was to read the timer counter and subtract to obtain pulse width, and reset the counter on rising edges... I've got HAL_TIM_IC_CaptureCallback() running, but am not certain how to tell what event has caused the interrupt... I realize this is a newbie question - appreciate any pointers to the right application notes or documentation too. I'd also be interested in using DMA if there are methods to speed this up.
