<?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>Configure wake up behavior from system off with app_button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4356/configure-wake-up-behavior-from-system-off-with-app_button</link><description>I&amp;#39;m using the APP_BUTTON_INIT-Function to register a button at the GPIOTE-System. This works great while running normally, e.g. I can react on debounced button_down or button_release events. 
 Magically this also works for waking from sd_power_system_off</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Nov 2014 08:12:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4356/configure-wake-up-behavior-from-system-off-with-app_button" /><item><title>RE: Configure wake up behavior from system off with app_button</title><link>https://devzone.nordicsemi.com/thread/15497?ContentTypeID=1</link><pubDate>Wed, 12 Nov 2014 08:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf6fec3-da65-490c-8239-ab59e0715f5f</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Yes, that would be my suggestion as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure wake up behavior from system off with app_button</title><link>https://devzone.nordicsemi.com/thread/15496?ContentTypeID=1</link><pubDate>Mon, 10 Nov 2014 15:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fcc10f4-c23f-4ab9-ac83-fd13062a947c</guid><dc:creator>Moritz</dc:creator><description>&lt;p&gt;Hi Stefan,
for testing purpose I just changed in the app_button_init function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;app_gpiote_user_register(&amp;amp;m_gpiote_user_id,pins_transition_mask,pins_transition_mask,gpiote_event_handler);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;app_gpiote_user_register(&amp;amp;m_gpiote_user_id,0,pins_transition_mask,gpiote_event_handler);
// second argument is low_to_high_bitmask
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now, I do no longer get button release events, but the system still wakes on button push and button release. Looking into &amp;quot;app_gpiote.c&amp;quot; I see that every interrupt calls the function sense_level_toggle(...), which inverts the sensing. So i suppose instead of working against the system it&amp;#39;s maybe easier for me to take the clues from app_button and app_gpiote and write my own solution for my special button behavior. Thanks anyway!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configure wake up behavior from system off with app_button</title><link>https://devzone.nordicsemi.com/thread/15495?ContentTypeID=1</link><pubDate>Mon, 10 Nov 2014 13:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3011c69c-45d6-488e-8deb-208ebc1837b8</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please take a look at &lt;a href="https://devzone.nordicsemi.com/question/15696/nrf51822-sense-pin-in-port-mode-doesnt-solve-the-gpiote-overconsumption-in-event-mode/?comment=15962#comment-15962"&gt;this thread&lt;/a&gt; to get an overview how button presses work.&lt;/p&gt;
&lt;p&gt;You can select if you get an interrupt on high signal, low signal, or both, when you register user in the &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.0.1/s110/html/a00016.html"&gt;app_gpiote library&lt;/a&gt;. For code reference, you can look at for example how app_button library does this in app_button_init function when registering for gpiote user with call to app_gpiote_user_register function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>