<?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>what does event-driven in nRF5 SDK mean?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34204/what-does-event-driven-in-nrf5-sdk-mean</link><description>The nRF5 SDK is event-driven. So does it mean that the event handler in my application will be directly called in the interrupt service routine? If I write a long event handler, does it will affect other things?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 May 2018 13:41:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34204/what-does-event-driven-in-nrf5-sdk-mean" /><item><title>RE: what does event-driven in nRF5 SDK mean?</title><link>https://devzone.nordicsemi.com/thread/131720?ContentTypeID=1</link><pubDate>Fri, 11 May 2018 13:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19bcd08-5f32-4e28-a2c2-4aa0cf98bc3a</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes and no.&lt;/p&gt;
&lt;p&gt;The event handler in your application is called as part of a software interrupt, although with relatively low priority. See the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.sds%2Fdita%2Fsoftdevices%2Fs130%2Fprocessor_avail_interrupt_latency%2Fexception_mgmt_sd.html"&gt;Interrupt priority levels&lt;/a&gt; section of the SoftDevice specification. It will only affect other things that are of same or lower interrupt priority. (Higher number is lower priority.)&lt;/p&gt;
&lt;p&gt;You may also run events (and any other interrupt triggered things) in main context (lowest priority), by using the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_scheduler.html"&gt;Schedule handling library&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>