<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>About the  NVIC_EnableIRQ</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39499/about-the-nvic_enableirq</link><description>Hi , 
 If the softdevice had inited (called sd_ble_enable() ) , Can I use the NVIC_EnableIRQ (or NVIC_DisableIRQ ) 
 to enable/disable an interrupt ? 
 What is the difference between the sd_nvic_EnableIRQ and NVIC_EnableIRQ ? 
 Thanks a lot !</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Oct 2018 07:06:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39499/about-the-nvic_enableirq" /><item><title>RE: About the  NVIC_EnableIRQ</title><link>https://devzone.nordicsemi.com/thread/153375?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 07:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d95fbd05-8a9a-4888-9150-149f92747402</guid><dc:creator>redfish</dc:creator><description>&lt;p&gt;OK , Thank you !&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the  NVIC_EnableIRQ</title><link>https://devzone.nordicsemi.com/thread/153374?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 07:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e1267d-564f-41fe-b88f-3e2429cda4c9</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;[quote user="RedFishLS"][/quote]&lt;/p&gt;
&lt;p&gt;//&amp;nbsp; power on&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;NVIC_DisableIRQ(TIMER1_IRQn) ;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sd_ble_enable(&amp;amp;ble_enable_params);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; ....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;NVIC_EnableIRQ(&lt;span&gt;TIMER1_IRQn&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;.......&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;// softdevice is enabled , do somthing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sd_nvic_DisableIRQ(&lt;span&gt;TIMER1_IRQn&lt;/span&gt;) ;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;myfunc1() ;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sd_nvic_EnableIRQ(&lt;span&gt;TIMER1_IRQn&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You cant use &lt;strong&gt;NVIC_EnableIRQ(TIMER1_IRQn);&lt;/strong&gt; after you have used &lt;strong&gt;sd_ble_enable(&amp;amp;ble_enable_params);&lt;/strong&gt; (since you have enabled the SoftDevice here), you have to use the &lt;strong&gt;sd_nvic_EnableIRQ(TIMER1_IRQn); &lt;/strong&gt;API after you enabled the SoftDevice.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the  NVIC_EnableIRQ</title><link>https://devzone.nordicsemi.com/thread/153363?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 06:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b47497-c8e8-41cb-9f58-00b397565b96</guid><dc:creator>redfish</dc:creator><description>&lt;p&gt;Thanks your reply&amp;nbsp; !&amp;nbsp; &amp;nbsp; Then I can use like this :&lt;/p&gt;
&lt;p&gt;//&amp;nbsp; power on&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;NVIC_DisableIRQ(TIMER1_IRQn) ;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sd_ble_enable(&amp;amp;ble_enable_params);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; ....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;NVIC_EnableIRQ(&lt;span&gt;TIMER1_IRQn&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;.......&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;// softdevice is enabled , do somthing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sd_nvic_DisableIRQ(&lt;span&gt;TIMER1_IRQn&lt;/span&gt;) ;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;myfunc1() ;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sd_nvic_EnableIRQ(&lt;span&gt;TIMER1_IRQn&lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;.....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the  NVIC_EnableIRQ</title><link>https://devzone.nordicsemi.com/thread/152966?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 07:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83ee025f-b3c0-4713-97c3-2a6e7c50f291</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;If you have the SoftDevice enabled, you cannot use the NVIC_EnableIRQ or NVIC_DisableIRQ API, this is because it is restricted when the SoftDevice is enabled, as you can read &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.sds%2Fdita%2Fsoftdevices%2Fs130%2Fsd_resource_reqs%2Fhw_block_interrupt_vector.html&amp;amp;cp=2_3_1_0_6_0"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You then have to use the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___n_r_f___n_v_i_c___f_u_n_c_t_i_o_n_s.html"&gt;SoftDevice API for NVIC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sd_nvic_DisableIRQ()&lt;/strong&gt; and &lt;strong&gt;sd_nvic_EnableIRQ()&lt;/strong&gt;, they corresponds to NVIC_DisableIRQ and&amp;nbsp;NVIC_EnableIRQ in CMSIS.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>