You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
split the linear code into different functions. Analyse the uses variables in the code after the wait and create global variables for these replace all referencens to the local once with the global. Set a timer interrupt for the the desired sleep time, store the callback to the second part of the execution (the second function) in some global variable. send the controller to sleep. In the interrupt handler jump to the second part of the execution, by calling the function pointer placed in the global variable.
The text was updated successfully, but these errors were encountered:
Basicly this just needs a simple sleep mode statement, since the stack is restored after a wakeup from a interrupt. What needs to be done is to simply setup a timer to wake the device aber a given time.
Maybe we can use some kind of scheduler for this in combination with long jumps.
split the linear code into different functions. Analyse the uses variables in the code after the wait and create global variables for these replace all referencens to the local once with the global. Set a timer interrupt for the the desired sleep time, store the callback to the second part of the execution (the second function) in some global variable. send the controller to sleep. In the interrupt handler jump to the second part of the execution, by calling the function pointer placed in the global variable.
The text was updated successfully, but these errors were encountered: