The MQX_TIME_SLICE_TASK

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

The MQX_TIME_SLICE_TASK

792 次查看
小勇邹
Contributor II

Can you give me an example for MQX_TIME_SLICE_TASK?
My hardware:Freescale_MQX_4_1_TWRK64F120M.

0 项奖励
回复
3 回复数

635 次查看
soledad
NXP Employee
NXP Employee

Hi Robin,

Please use the attached example. In order to use time slice you need to enabled

#define MQX_HAS_TIME_SLICE                        1

in the user_config.h.


pastedImage_2.png


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

635 次查看
小勇邹
Contributor II

Thank you very much.

What is the meaning of The MQX_TIME_SLICE_TASK?

 
{THIRD_TASK,   third_task,   1500,
9,   "third", MQX_AUTO_START_TASK|MQX_TIME_SLICE_TASK,
0, 10},

Does it mean that the task " THIRD_TASK" will
be scheduled per 10ms?

If I want my task scheduled per 10ms, how should I do?

0 项奖励
回复

635 次查看
soledad
NXP Employee
NXP Employee

Hi,

Yes, the task will be scheduled per 10ms.

pastedImage_0.png

Have a nice day!!

Regards

Soledad

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复