Way to re-init a hw timer ?

commodore
Posts: 2
Joined: Sun Feb 02, 2020 11:39 am

Way to re-init a hw timer ?

Postby commodore » Sun Feb 02, 2020 11:57 am

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 ?

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Way to re-init a hw timer ?

Postby ESP_Dazz » Sun Feb 09, 2020 10:19 pm

Calling timer_init() should be able to reinitialize a timer. Just be sure to call timer_pause() first.

Who is online

Users browsing this forum: Bing [Bot] and 77 guests