The MQX_TIME_SLICE_TASK

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

The MQX_TIME_SLICE_TASK

837件の閲覧回数
小勇邹
Contributor II

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

0 件の賞賛
返信
3 返答(返信)

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

680件の閲覧回数
小勇邹
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 件の賞賛
返信

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