Example of Nested Timers in ESP-32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
prathode
Posts: 5
Joined: Tue Feb 01, 2022 1:16 pm

Example of Nested Timers in ESP-32

Post by prathode » Fri Mar 04, 2022 7:12 am

Hi all,
I am looking for a practical example of using nested hardware timers in ESP32.

I have initialized Timer0 in a function and in its call back I am initializing Timer1 and again in its callback it does some task and calls function where Timer0 is defined. It actually makes an loop which results in error: MAX RECURSIVE DEPTH REACHED.

Can some one share a working example or way to use nested timers. It would be great help to me.

Post Reply