Using TM4C123GXL launchpad. Have a while loop in the main program, which mostly consist of delays functions. Is it possible to reset/restart the loop (start from the beginning) after returning from an interrupt (such as edge-triggered or UART type interrupts)? Don't want to do this by simply checking a global variable in almost every line, inside the main loop and delays.
If this is possible, could you please give me some tips how to do it? A simple example is also highly appreciated. Thank you.
P.S. 1: Probably it is a weird question, but I couldn't find anything about this subject.
P.S. 2: I'm mostly using Direct Register Macro coding style, but TivaWare method is also welcomed.