Hi All,
I want to know how to disable all the interrupts (even systick) from a task in MQX. I am using K60N512. Can anyone please provide some information ? I have looked into some of the posts in the forum and they discuss on how to disable only certain interrupts not all.
Thanks,
Mohsin
解決済! 解決策の投稿を見る。
You can use _int_disable() and _int_enable().
Or put these macros somewhere in your code, which can be used to disable/enable interrupts at the core.
#define EnableInterrupts asm(" CPSIE i");
#define DisableInterrupts asm(" CPSID i");
You can use _int_disable() and _int_enable().
Or put these macros somewhere in your code, which can be used to disable/enable interrupts at the core.
#define EnableInterrupts asm(" CPSIE i");
#define DisableInterrupts asm(" CPSID i");