This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F29H850TU: How to Detect Runtime Context (Interrupt vs Task)

Part Number: F29H850TU


Tool/software:

Hi,

I need to determine at runtime whether my code is executing in an interrupt context or a task context on F29H850TU. This is for implementing context-aware function calls. My use case looks something like this:

if(isInInterrupt()){
    doSomethingFromISR();
}
else{
    doSomething();
}


Is there a driverlib API or a particular register I can use to detect the context ?