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
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------