This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

assert check to ensure that code is not running in an interrupt handler

I would like to insert some asserts in my code to ensure that code is not running inside a interrupt handler, because this can cause hard to debug issues.

How can I check that my code is not running inside a interrupt handler?

Related