AnsweredAssumed Answered

Discovering if inside an ISR

Question asked by Luiz Gustavo Berro on Mar 12, 2013
Latest reply on Mar 12, 2013 by Clive One
Is there any way to discover if we are running inside any ISR (uart, systick, timers, etc.)? It would avoid dead-locks.

I thought reading IPSR would help, so if ISR_NUMBER is different from 0 (thread mode), then we would be running inside an ISR. But I couldn't find a way to read it.

Outcomes