How to stop all interrupts in MQX

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to stop all interrupts in MQX

ソリューションへジャンプ
897件の閲覧回数
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 解決策
351件の閲覧回数
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 返信
352件の閲覧回数
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 件の賞賛
返信