Disable all hardware interrupts in MQX

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

Disable all hardware interrupts in MQX

1,578 次查看
aakankshagaur
Contributor I

Hello,

I want to perform RAM test at Run time. So I try to disable all MQX interrupt before jumping to the RAM test code using

  _int_disable()

       RAMTest()

_int_enable()

But still the MQX interrupt happen and my code stuck in between.

So could somebody tell me how to disable all the MQX interrupt even with priority levels upto 7 also before jumping to RAM test code.

Or is there any function or preprocessor directives in MQX to enter and exit from critical section?

0 项奖励
回复
2 回复数

1,321 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi

These functions (_int_disable and _int_enable) enable and disable ALL interrupts EXCEPT NON MASKABLE interrupts.

I think you can try _mqx_exit(0), this function disable all the interrupts.

Regards

Daniel

0 项奖励
回复

1,321 次查看
aakankshagaur
Contributor I

Hi Daniel,

Thanks for your response but I guess _mqx_exit(0) would not help me because I have many periodic task in the code. And the task which would perform RAM Test will get executed in every 20 milliseconds.

0 项奖励
回复