<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software SolutionsのトピックDisable all hardware interrupts in MQX</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450543#M15075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;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&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp; _int_disable()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAMTest()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt; _int_enable()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;But still the MQX interrupt happen and my code stuck in between. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Or is there any function or preprocessor directives in MQX to enter and exit from critical section?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 13:54:56 GMT</pubDate>
    <dc:creator>aakankshagaur</dc:creator>
    <dc:date>2015-07-27T13:54:56Z</dc:date>
    <item>
      <title>Disable all hardware interrupts in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450543#M15075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;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&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp; _int_disable()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAMTest()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt; _int_enable()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;But still the MQX interrupt happen and my code stuck in between. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Or is there any function or preprocessor directives in MQX to enter and exit from critical section?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 13:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450543#M15075</guid>
      <dc:creator>aakankshagaur</dc:creator>
      <dc:date>2015-07-27T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Disable all hardware interrupts in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450544#M15076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These functions (_int_disable and _int_enable) enable and disable ALL interrupts EXCEPT NON MASKABLE interrupts.&lt;/P&gt;&lt;P&gt;I think you can try _mqx_exit(0), this function disable all the interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 06:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450544#M15076</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-07-28T06:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disable all hardware interrupts in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450545#M15077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 07:14:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Disable-all-hardware-interrupts-in-MQX/m-p/450545#M15077</guid>
      <dc:creator>aakankshagaur</dc:creator>
      <dc:date>2015-07-28T07:14:46Z</dc:date>
    </item>
  </channel>
</rss>

