<?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>topic Re: NVIC management (porting from Codewarrior) in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1201946#M6503</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The available functions to disable the interruptions are: DisableIRQ() and DisableGlobalIRQ().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In DisableGlobalIRQ() all the interruptions are disabled while in DisableIRQ() you need to specify which interruption you want to disable.&lt;/P&gt;
&lt;P&gt;Out of this functions there are any other function available, for you purpose I think that DisableIRQ() is a good option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Omar&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 20:20:33 GMT</pubDate>
    <dc:creator>Omar_Anguiano</dc:creator>
    <dc:date>2020-12-18T20:20:33Z</dc:date>
    <item>
      <title>NVIC management (porting from Codewarrior)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1199517#M6483</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm porting a project for KL26Z128 from Codewarrior to MCUxpresso IDE. The old project was not created by me, so I was not concerned about some choices made about low level configuration.&lt;/P&gt;&lt;P&gt;Now I'm trying to port the following instructions:&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt; tInterruptStatus = NVIC_ISER;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NVIC_ICER = 0xFFFFFFFF;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[some instructions here]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt; while(NVIC_ISER != tInterruptStatus)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; NVIC_ISER = tInterruptStatus;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;I guess that code executed in &lt;FONT face="courier new,courier"&gt;[some instructions here]&lt;/FONT&gt; must be executed being sure that no interrupt occurs.&lt;/P&gt;&lt;P&gt;I only found in core_cm0plus.h (and fsl_common.h) utilities to enable/disable one interrupt (IRQ and/or "pending" IRQ at a time), there is no intermediate utility to access directly the whole NVIC_ISER/NVIC_ICER register.&lt;/P&gt;&lt;P&gt;Could I introduce an utility to reproduce the same behaviour from my original source code or I have to proceed one interrupt at a time using the disableIrq/enableIrq available functions?&lt;/P&gt;&lt;P&gt;Or do you have any different advice to manage this?&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 08:52:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1199517#M6483</guid>
      <dc:creator>rosigna</dc:creator>
      <dc:date>2020-12-15T08:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC management (porting from Codewarrior)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1201946#M6503</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The available functions to disable the interruptions are: DisableIRQ() and DisableGlobalIRQ().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In DisableGlobalIRQ() all the interruptions are disabled while in DisableIRQ() you need to specify which interruption you want to disable.&lt;/P&gt;
&lt;P&gt;Out of this functions there are any other function available, for you purpose I think that DisableIRQ() is a good option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 20:20:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1201946#M6503</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-12-18T20:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: NVIC management (porting from Codewarrior)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1208117#M6531</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. Your advice confirms my understanding, so I will do as you suggest.&lt;/P&gt;&lt;P&gt;I guess that I could introduce a local bitmask to control which interrupt are enabled/disabled time by time, in order to have a local copy of the low level mask.&lt;/P&gt;&lt;P&gt;Could this be a good compromise between old and new source code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;Rosa&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 08:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/NVIC-management-porting-from-Codewarrior/m-p/1208117#M6531</guid>
      <dc:creator>rosigna</dc:creator>
      <dc:date>2021-01-07T08:06:25Z</dc:date>
    </item>
  </channel>
</rss>

