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

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

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

ソリューションへジャンプ
2,137件の閲覧回数
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 解決策
1,694件の閲覧回数
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 返答(返信)
1,695件の閲覧回数
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 件の賞賛
返信
1,694件の閲覧回数
akhil
Contributor III

Dear Sol,

Thank you very much for your quick reply.

Regards

Akhil

0 件の賞賛
返信