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