Using of ESP IDF esp_timer and GPTimer simultaneously

IvanFedotov
Posts: 2
Joined: Thu Aug 18, 2022 4:06 pm

Using of ESP IDF esp_timer and GPTimer simultaneously

Postby IvanFedotov » Sun Feb 05, 2023 9:00 am

Hello!

I need to use hardware timers of ESP32 simultaneously with esp_timer.

Is it correct, that esp_timer always uses first timer of timer group defined by LACT_MODULE (i.e. LACT_MODULE=0 - first timer of group 0, LACT_MODULE=1 - first timer of group 1)?

As for GPTimer - i found, that this module starts to use timers from first time of 0 group.

So, as I understand, threre no automatic (by IDF code) distribution of hardware timers between esp_timer and GPTimer modules?
Those, if use LACT_MODULE=0 and add GPTimer, they will both use first timer of 0 group? or is it not?

Who is online

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