I'm trying to measure the duration of a button press using TIM2 as a counter. I have one of the buttons triggering an interrupt which enables the timer on the positive edge, and then calls TIM2_GetCounter() on the negative edge.I'll save you all a bu...