New Timer API, where is the selection of the timer ?

billys7
Posts: 5
Joined: Tue Feb 22, 2022 4:00 pm

New Timer API, where is the selection of the timer ?

Postby billys7 » Sun Mar 30, 2025 11:08 am

With the new timer API v3.0 and above, i could not find where i choose the timer i want to use.

In the previous API v2.X we had to declare "timer = timerBegin(1, 80, true); means Timer 1, prescaler 80 → 1 MHz (1 µs ticks)".
In the new API, where can i choose timer 3 for example ?

lbernstone
Posts: 1131
Joined: Mon Jul 22, 2019 3:20 pm

Re: New Timer API, where is the selection of the timer ?

Postby lbernstone » Sun Mar 30, 2025 5:02 pm

The ESP-IDF v5 gptimer driver manages the timers as a pool to abstract away the hardware differences between different variants.

billys7
Posts: 5
Joined: Tue Feb 22, 2022 4:00 pm

Re: New Timer API, where is the selection of the timer ?

Postby billys7 » Tue Apr 01, 2025 6:16 pm

Is there any way i can choose the timer ?

Who is online

Users browsing this forum: Applebot and 2 guests