Porting code to IDF

Achim Pieters
Posts: 3
Joined: Mon Jan 09, 2023 5:23 pm

Porting code to IDF

Postby Achim Pieters » Wed Dec 06, 2023 3:51 pm

Hi All,

I'm trying to port some old code to IDF V5.x but cant find the solution? It's not in the documentation off IDF online, so maybe someone here knows how to resolve this?

Code: Select all

ETSTimer new_timer;

sdk_os_timer_disarm(&new_timer);
sdk_os_timer_setfn(&new_timer, relay_timeout, NULL);

 sdk_os_timer_disarm(&new_timer);
 sdk_os_timer_arm(&new_timer, relay_period * 1000, 0);

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Porting code to IDF

Postby ESP_Sprite » Thu Dec 07, 2023 12:59 am

https://docs.espressif.com/projects/esp ... timer.html is available for all your timing needs :)

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Porting code to IDF

Postby MicroController » Sun Dec 10, 2023 9:02 am

;) :D

Who is online

Users browsing this forum: No registered users and 122 guests