I am devloping on Cortex m3 and I got into a aituation that while handling Interrupt I want to return to main() and forgte about the fact that i need to return to deal with the rest of the code where the interrupt stoped me.
Other peripherals will have something similar. You should read the RM0008 or RM0032 as this will describe it in more detail. There will be something similar for the Philips and Texas parts.