Stop and Start task preemption using _int_disable..._int_enable functions

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

Stop and Start task preemption using _int_disable..._int_enable functions

跳至解决方案
1,254 次查看
akhil
Contributor III

Hi all,

I want to stop the task preemption and mask the ISR simultaneously. Do the function call _int_disable() is enough for this?

Or do I need to call  _int_disable()  for masking the ISR and task_stop_preemption() for stopping the task preemption as follows?

...

...

_int_disable();

_task_stop_preemption();

...

...

_task_start_preemption();

_int_enable();

...

...

OS: MQX 4.0.2

Note: FIFO scheduling is used.

Thanks

Akhil

标记 (2)
0 项奖励
回复
1 解答
811 次查看
soledad
NXP Employee
NXP Employee

Hello Akhil,

You need to call  _int_disable()  for masking the ISR and task_stop_preemption() for stopping the task preemption.


Have a great day,
Sol

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
812 次查看
soledad
NXP Employee
NXP Employee

Hello Akhil,

You need to call  _int_disable()  for masking the ISR and task_stop_preemption() for stopping the task preemption.


Have a great day,
Sol

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

0 项奖励
回复
811 次查看
akhil
Contributor III

Dear Sol,

Thank you very much for your quick reply.

Regards

Akhil

0 项奖励
回复