<?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 do I raise an interrupt from application code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17607/how-do-i-raise-an-interrupt-from-application-code</link><description>I have a main loop in my application like this: 
 while (true)
{
 // Other calls left out here.

 app_sched_execute();

 err_code = sd_app_evt_wait();
 APP_ERROR_CHECK(err_code);
}
 
 I&amp;#39;m now in a situation where one of my scheduled functions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Nov 2016 17:12:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17607/how-do-i-raise-an-interrupt-from-application-code" /><item><title>RE: How do I raise an interrupt from application code?</title><link>https://devzone.nordicsemi.com/thread/67704?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2016 17:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd8b5b91-f4f4-470c-8d84-58572e63b252</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Looks good, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I raise an interrupt from application code?</title><link>https://devzone.nordicsemi.com/thread/67702?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 14:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0d597a-ec5f-403d-8afe-cb90b65c8ba3</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;What I do if I need quick execution of next scheduled task, I set global var in function and bypass sd_app_evt_wait() in main loop if it is set.....add: and put next function in a queue in first function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I raise an interrupt from application code?</title><link>https://devzone.nordicsemi.com/thread/67703?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2016 13:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8856e701-7f06-4496-9ff5-489522f5bcc9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, if you are not using radio notifications from the softdevice, then both SWI0 and SWI1 can be used by the application. Typically the SWI0 is used by the app_timer module, but the SWI1 is not used. You can look at the app_timer module as reference on how to enable and set the SWI1 pending.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>