Disable all hardware interrupts in MQX

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

Disable all hardware interrupts in MQX

960 Views
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 Kudos
Reply
2 Replies

703 Views
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 Kudos
Reply

703 Views
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 Kudos
Reply