How to get to know what timers are currently active?

pranav
Posts: 6
Joined: Mon Jun 05, 2017 9:41 am

How to get to know what timers are currently active?

Postby pranav » Mon Jun 12, 2017 7:32 am

Hey everyone.
I've just started getting to know about the ESP32 and I wanted to know,
Is there a way for me to know how many of the hardware timers (I believe there are 4) are currently active at a point of time?
I read the API and things like

Code: Select all

esp_err_t timer_get_config(timer_group_t group_num, timer_idx_t timer_num, timer_config_t *config)


will not work since it requires an already configured timer to pass as an arguement (the last param)
So is there any other way I can know which among the four timers are free?

Thanks.

Who is online

Users browsing this forum: No registered users and 415 guests