I want to check dynamically if my function has been called from an ISR.
For example, in the FreeRTOS port for the PIC32 you can use:
#define IN_ISR() uxInterruptNesting > 0 ? True : False
Is there a TMS570's special register that counts nested interrupt that I could poll?
Thanks,
Gabriel