English Man
2015-10-14 09:33:01 UTC
In this program I have 4-case statements, with each case having a function corresponding to each different case. Each respective function keeps on looping until the user changes the switched option.
An external button used to change the switched option interrupts the program to service an Interrupt Service Routine.
Now since the interrupt service routine is changing the option, I want that when the program returns from the ISR, instead of continuing the function that it was doing, it jumps out of the case statement and goes to the new function required according to the new case.
How can I do this please?