SOFTWARE TIMER SUPPORT FOR ESP32

User avatar
rajkumar patel
Posts: 29
Joined: Mon Apr 10, 2017 12:43 pm
Location: india

SOFTWARE TIMER SUPPORT FOR ESP32

Postby rajkumar patel » Mon May 01, 2017 1:40 pm

hello comrades,

there are different APIs for hardware and software timers in esp8266, but i ain't able to find any software timer support for esp32. i've read hardware timer example under peripheral section in given examples of official 2.0 IDF.
is there any way to use software timers for esp32? or any profound technique for creating software timers from available four hardware timers(2 from each group 0 and 1) in 2.0 idf?

i'll be grateful for any kind of guidance from espressif team and other fellows who have thought need of of this software timer support earlier.

thanks,
regards.
Regards,
Rajkumar M. Patel

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Postby WiFive » Mon May 01, 2017 2:24 pm


User avatar
rajkumar patel
Posts: 29
Joined: Mon Apr 10, 2017 12:43 pm
Location: india

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Postby rajkumar patel » Tue May 02, 2017 5:07 am

hi ,

thanks for quick response.
actually in one of my project on esp8266 i've gone for these RTOS timers along with os_timers API(software timers) and those works fine too. but in case of esp32 , is using RTOS timers the only option left for us? isn't there any way to create software timers from available Hardware timers?
WiFive, could you shade some more light on this thing?
Regards,
Rajkumar M. Patel

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Postby WiFive » Tue May 02, 2017 5:35 am

Sure you can build something on top of hardware timer. But what it looks like will vary depending on application requirements.

User avatar
rajkumar patel
Posts: 29
Joined: Mon Apr 10, 2017 12:43 pm
Location: india

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Postby rajkumar patel » Tue May 02, 2017 6:04 am

yeah...thanks WiFive!
i think that's the only option me also seeing at this moment.

still i'll try to keep this thread alive as and when i'll get new info on this or when i get stuck ...
will be needing some more help on this.. ;)

regards
Regards,
Rajkumar M. Patel

Who is online

Users browsing this forum: Baidu [Spider] and 138 guests