Hi all,
Yes, I'm longjumping out of an ISR. What I'm trying to do is to implement a simple method to abort an infinite loop as an interrupt occurs.
As a problem, I see that GIE doesn't get restored to 1 after the longjmp (because the ISR couldn't restore the context with RETI, and GIE is reset in the ISR entrance). So I'm just setting it after the paths following the setjmp() call.
Do you know any cleaner workaround, or else a better solution?