Which timers are reserved for esp32?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
nagylzs
Posts: 40
Joined: Sat Jan 19, 2019 8:01 pm

Which timers are reserved for esp32?

Post by nagylzs » Fri Dec 20, 2019 6:20 am

I'm in the process of writting a module for MP. I need to use a timer.

I have noticed that esp32 uses Timer 1 for PWM here:

https://github.com/micropython/micropyt ... _pwm.c#L57

So it is a fixed Timer number, and probaby I cannot use this timer for a different purpose. What timers are used internally by MicroPython? I need to know this so that I can allocate one in my module.

Thank you

Post Reply