how to enter the task into a standby mode?

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

how to enter the task into a standby mode?

跳至解决方案
1,017 次查看
ggdggjjj
Contributor I

Hello/

I used KSDK 3 and MQX 1.2.

And i need question.

how to enter the task into a standby (Idle) mode?

0 项奖励
回复
1 解答
874 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

I think you can try the _task_block function, this function removes the active task from the task's ready queue and sets the BLOCKED bit in the STATE field of the task descriptor. The task does not run again until another task explicitly makes it ready with _task_ready()

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
875 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

I think you can try the _task_block function, this function removes the active task from the task's ready queue and sets the BLOCKED bit in the STATE field of the task descriptor. The task does not run again until another task explicitly makes it ready with _task_ready()

Regards

Daniel

0 项奖励
回复