<?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>SWI user flags</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20749/swi-user-flags</link><description>Hello to all nordic jedi masters out there! 
 I am using nRF SDK v11.0 with the nRF52832. 
 I am a little bit confused about the usage/meaning of the flag argument in the nrf_drv_swi_trigger function. 
 Is it an arbitrary &amp;quot;context&amp;quot; variable I can use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Mar 2017 13:04:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20749/swi-user-flags" /><item><title>RE: SWI user flags</title><link>https://devzone.nordicsemi.com/thread/80977?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 13:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b46b7d00-fbb5-4d26-bf21-c94e2ad0050c</guid><dc:creator>raccoon</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SWI user flags</title><link>https://devzone.nordicsemi.com/thread/80976?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 12:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70b40691-41bb-49bc-ade4-889357b8b9f0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, the flags are arbitrary &amp;quot;context&amp;quot; variable, it allows users to pass extra flags to SWI interrupt handler functions. Looks like nrf_swi_flags_t should have been a uint8_t. Regarding the &lt;code&gt;SWI0_EGU0_IRQHandler&lt;/code&gt; symbol error, in SDK 11 app_timer uses &lt;code&gt;SWI0_EGU0_IRQn&lt;/code&gt;, but you can change it to use &lt;code&gt;SWI1_EGU1_IRQn&lt;/code&gt; instead. You can change this in app_timer.c :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#elif defined NRF52
#define SWI_IRQn SWI1_EGU1_IRQn
#define SWI_IRQHandler SWI1_EGU1_IRQHandler
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Regarding &lt;code&gt;SWI_DISABLE0&lt;/code&gt; you can read &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/hardware_driver_swi.html?cp=4_0_3_2_14_0_3#swi_special_options"&gt;here&lt;/a&gt; that:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;To disable specific SWIs from the
pool, add a global define during
compilation (SWI_DISABLE0 to
SWI_DISABLE5). Any disabled SWI will
not be allocated and will therefore
not be available to the user.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>