Help with interrupt handler
What does this attribute do?
What I undrestand is that it basically does a return from interrupt (rti) assembly instruction for you.
void __attribute__ ((interrupt)) context_switch (void)
so this would be the same:
When I try this though! I get a program stopped with signal 4 error :(
void context_switch (void)
volatile asm ("rti")
So the __attribute__ ((interrupt)) must be doing more than an RTI instruction to return where it was.
Any help appreciated.