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?
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?
You could check this register, field VECTACTIVE:
http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/Cihfaaha.html
Cheers,
Håkon