The MQX_TIME_SLICE_TASK

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

The MQX_TIME_SLICE_TASK

547 Views
小勇邹
Contributor II

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

0 Kudos
3 Replies

390 Views
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 Kudos

390 Views
小勇邹
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 Kudos

390 Views
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 Kudos