Know more info on context switching mechanism in MQX

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Know more info on context switching mechanism in MQX

396件の閲覧回数
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 返信

242件の閲覧回数
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 件の賞賛