Page 1 of 1

SOFTWARE TIMER SUPPORT FOR ESP32

Posted: Mon May 01, 2017 1:40 pm
by rajkumar patel
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.

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Posted: Mon May 01, 2017 2:24 pm
by WiFive

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Posted: Tue May 02, 2017 5:07 am
by rajkumar patel
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?

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Posted: Tue May 02, 2017 5:35 am
by WiFive
Sure you can build something on top of hardware timer. But what it looks like will vary depending on application requirements.

Re: SOFTWARE TIMER SUPPORT FOR ESP32

Posted: Tue May 02, 2017 6:04 am
by rajkumar patel
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