Page 1 of 1

Way to re-init a hw timer ?

Posted: Sun Feb 02, 2020 11:57 am
by commodore
I have been trying to generate one-time usable delays based on different inputs, delivering message from the origin forward. Code is based on example code from timer_group, IDF version 3.1.1.

Got it working ok, for available 4 timers, but after that I should be able to release / reinit one of the used ones.

What would be a proper way to do this, possibly from isr ?

Re: Way to re-init a hw timer ?

Posted: Sun Feb 09, 2020 10:19 pm
by ESP_Dazz
Calling timer_init() should be able to reinitialize a timer. Just be sure to call timer_pause() first.