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

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

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

Jump to solution
965 Views
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

Tags (2)
0 Kudos
1 Solution
522 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
523 Views
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 Kudos
522 Views
akhil
Contributor III

Dear Sol,

Thank you very much for your quick reply.

Regards

Akhil

0 Kudos