<?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>how to disable all interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66915/how-to-disable-all-interrupt</link><description>as the topic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 02:10:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66915/how-to-disable-all-interrupt" /><item><title>RE: how to disable all interrupt</title><link>https://devzone.nordicsemi.com/thread/278347?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 02:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b13d3724-0e5d-48f1-8f04-407530d9a9e5</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Ivan:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Thank you for your reply, Pls close this topic,thank you!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable all interrupt</title><link>https://devzone.nordicsemi.com/thread/274043?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 12:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b557807f-0e5f-472e-8d0e-4f3940afa142</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;I&amp;#39;m unable to reproduce your error.&amp;nbsp;Using SDK 16, I can add __disable_irq(); fine.&amp;nbsp;&lt;/p&gt;
[quote userid="84662" url="~/f/nordic-q-a/66915/how-to-disable-all-interrupt/273972#273972"]one&amp;nbsp;more&amp;nbsp;another&amp;nbsp;question：the source code as below,the &amp;quot;for&amp;quot;statement would be optimised,how to&amp;nbsp;prevent it?[/quote]
&lt;p&gt;Multiple ways, easiest is by turning optimization off at compiler level. If you google &amp;quot;How to disable optimization for specific function&amp;quot;, you&amp;#39;ll see various examples.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable all interrupt</title><link>https://devzone.nordicsemi.com/thread/273972?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e35e540-06e0-4c57-9517-09152f337b88</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;HI，Ivan：&lt;/p&gt;
&lt;p&gt;example：BLE_APP_MOUSE&lt;/p&gt;
&lt;p&gt;SDK16&lt;/p&gt;
&lt;p&gt;one&amp;nbsp;more&amp;nbsp;another&amp;nbsp;question：the source code as below,the &amp;quot;for&amp;quot;statement would be optimised,how to&amp;nbsp;prevent it?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void sensor_init(void)
{
    uint32_t VAR1;
    uint32_t VAR2;
    
    nrf_gpio_cfg_output(power);
    nrf_gpio_cfg_output(cs);
    nrf_gpio_pin_set(cs);
 //   nrf_gpio_pin_set(power);
    nrf_gpio_pin_clear(cs);


   nrf_gpio_pin_set(cs);
   for(VAR1=0;VAR1&amp;lt;10000;VAR1++)
   {
      
   }
   nrf_gpio_pin_clear(cs);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable all interrupt</title><link>https://devzone.nordicsemi.com/thread/273965?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b6e350-fd3d-4458-b0cf-cb809e9ffd9b</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;Are you using an example? If so, which one? It should automatically be included through the cmsis_gcc.h header file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable all interrupt</title><link>https://devzone.nordicsemi.com/thread/273951?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 08:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33a2911e-0a96-46bd-978e-109db52ea4fc</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Ivan:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; yes! I have written the function __disable_irq() in my source code,but&amp;nbsp; the compiler Can&amp;#39;t find the&amp;nbsp; function.I search the whole solution files.I also can&amp;#39;t find it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to disable all interrupt</title><link>https://devzone.nordicsemi.com/thread/273941?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 07:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5baa0fcb-29f0-43a3-b753-8620e55941be</guid><dc:creator>Ivan Herrera</dc:creator><description>&lt;p&gt;Have you read the following posts?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/7321/how-to-enable-and-disable-all-interrupts"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/7321/how-to-enable-and-disable-all-interrupts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/627/what-is-the-easiest-way-to-disable-all-interrupts"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/627/what-is-the-easiest-way-to-disable-all-interrupts&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>