How to stop all interrupts in MQX

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

How to stop all interrupts in MQX

Jump to solution
860 Views
Mohsin455
Contributor IV

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

Tags (3)
0 Kudos
1 Solution
314 Views
anthony_huereca
NXP Employee
NXP Employee

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");



View solution in original post

0 Kudos
1 Reply
315 Views
anthony_huereca
NXP Employee
NXP Employee

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");



0 Kudos