How to stop all interrupts in MQX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to stop all interrupts in MQX

跳至解决方案
903 次查看
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

标记 (3)
0 项奖励
回复
1 解答
357 次查看
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 项奖励
回复
1 回复
358 次查看
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 项奖励
回复