Missing xPortIsInsideInterrupt in portmacro.h

marbalon
Posts: 23
Joined: Wed Dec 20, 2017 11:02 am

Missing xPortIsInsideInterrupt in portmacro.h

Postby marbalon » Wed Dec 20, 2017 11:07 am

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.

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

Re: Missing xPortIsInsideInterrupt in portmacro.h

Postby ESP_Sprite » Wed Dec 20, 2017 12:20 pm

You can use xPortInIsrContext(), which returns true if the core calling it is in interrupt context.

Who is online

Users browsing this forum: axellin and 74 guests