2021-06-17 12:19 PM
Using an STM32WB55, timer16 for switch debounce. It is set for 100ms. I was looking in the HAL library for the timer and I see start / stop functions, etc. but how do I reset my timer after I come into the ISR? I am sure the counter will roll over by the time I get into the ISR and I would like to reset it for the next pushbutton but see no calls how to do it. Seems very bleak to think I would have to do an INIT again.
Thanks
Steve
2021-06-17 12:51 PM
You can write zero value to counter.
2021-06-17 01:11 PM
Yup I just did that....
Thank you.