Hi,
I want to implement a mechanism to perform context switches on the K60 evaluation board to be able to run multiple tasks by implementing a scheduler.
Can someone please direct me to an example regarding how can I save the currently running task's registers (and which ones should be saved) and move to another block of code?
Does someone maybe know about an application that implemented this functionality and can direct me to its code?
MQX:3.8
Processor:K60
Please let me know exact procedure how to save the running task registers before switching to the next task
regards
vallinath
Hi Valinath,
All the register saving and context switching happens automatically with MQX, so no user intervention or code is needed. The MQX scheduler takes care of all of that so you can easily switch between tasks.
If you want to implement your own explicit scheduler, you can use Task Queues, though that is a much more advanced MQX topic. Typically most people use the standard FIFO scheduling. Details can be found in the MQX User Guide.
Regards,
Anthony