Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Code to determine interrupt context?

Is it possible for a re-entrant C function to determine in which interrupt context it is running on a NIOSII processor? i.e. if it can be called from both the idle loop and an interrupt handler, can ...