Page 1 of 1

Missing xPortIsInsideInterrupt in portmacro.h

Posted: Wed Dec 20, 2017 11:07 am
by marbalon
Hi,
I'm trying to port one of NXP libraries to ESP32 + esp-IDF but have a problem with this function. In other platforms I see it is defined in portmacro.h file and obtain the number of the currently executing interrupt and then return true or false.

So the basic question is how can I read information about this in ESP to define this function?

BR,
Marcin.

Re: Missing xPortIsInsideInterrupt in portmacro.h

Posted: Wed Dec 20, 2017 12:20 pm
by ESP_Sprite
You can use xPortInIsrContext(), which returns true if the core calling it is in interrupt context.