Page 1 of 1

api calls in ISR

Posted: Fri Sep 08, 2017 11:56 am
by jumjum123
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

Re: api calls in ISR

Posted: Fri Sep 08, 2017 1:12 pm
by Sprite
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.

Re: api calls in ISR

Posted: Fri Sep 08, 2017 3:52 pm
by jumjum123
So gettimeofday should not be called in ISR ?
What could I use instead ?

Re: api calls in ISR

Posted: Fri Sep 08, 2017 5:28 pm
by WiFive