how to enter the task into a standby mode?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to enter the task into a standby mode?

Jump to solution
1,016 Views
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 Kudos
Reply
1 Solution
873 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
874 Views
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 Kudos
Reply