So as the title suggests I’m interested to learn about the where the flow of control goes after the timer callback function is called or after an ISR(interrupt service routine) takes place. I was hoping it would look like the following:
Timer ends -----> Callback Function -----> flow of control returns to same line where the timer ended.
Interrupt ---------> ISR Function -----------> Flow of control returns to the same line where the interrupt occurred.
This is what I’m hoping my program does because I have the callback function go to sleep and wake up based on the WKP pin for the timer portion of the program. And the interrupts are basically to reset the timers based on events on a pin. I guess a timer ending counts as an interrupt and should work like one wherein it returns back to the line it was on where it stopped but I’m unsure of what it does if I put the device to sleep while in the callback function.
I would ordinarily test this on my electron and answer the question myself, however I don’t have mine with me while I’m travelling(3wks ). So thanks in advance to anyone who knows the answer to this!