Forum Discussion
Altera_Forum
Honored Contributor
16 years agoCode 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 ...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- So the NIOSII processor doesn't have the equivalent of an "interrupt level" register that it uses to decide whether to accept higher priority interrupts, in the way that many lower end processors have? --- Quote End --- Usually, int is working with interrupt disable. And idle task is working with interrupt enable. But checking stack pointer will be much better solution.