Know more info on context switching mechanism in MQX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Know more info on context switching mechanism in MQX

399 次查看
vallinaths
Contributor II

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

0 项奖励
1 回复

245 次查看
anthony_huereca
NXP Employee
NXP Employee

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

0 项奖励