api calls in ISR

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

api calls in ISR

Postby jumjum123 » Fri Sep 08, 2017 11:56 am

Somewhere in my mind is a post use of api calls in ISR
How can I find more information about that.
Is there something like a list of free_to_be_used_in_ISR

Actual problem is around using gettimeofday, where application crashes from time to time

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

Re: api calls in ISR

Postby ESP_Sprite » Fri Sep 08, 2017 1:12 pm

Essentially, all FreeRTOS calls that end in fromISR can be called from an ISR. Apart from that, no esp-idf calls, unless explicitly indicated otherwise, are guaranteed to behave themselves when called from an ISR.

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

Re: api calls in ISR

Postby jumjum123 » Fri Sep 08, 2017 3:52 pm

So gettimeofday should not be called in ISR ?
What could I use instead ?

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

Re: api calls in ISR

Postby WiFive » Fri Sep 08, 2017 5:28 pm


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 111 guests