<?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>GPIO wakeup and System OFf</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9990/gpio-wakeup-and-system-off</link><description>I have developed a custom board with a NRF51822AB on which there is no power switch. I want to power up and power down the device with a push button.
Power up : The user push the button for 2 seconds to wake up the device.
Power down : The device go</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2015 21:21:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9990/gpio-wakeup-and-system-off" /><item><title>RE: GPIO wakeup and System OFf</title><link>https://devzone.nordicsemi.com/thread/37045?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 21:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe29ea90-8fa8-4685-84ea-58ce8c31d0ee</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;On the first push, the device will go to System On.  I suggest starting an app_timer with a 2sec timeout to track how long the button is held.  If it times out, then start advertising the that app_timers handler function.  If the user releases the button early trigger a System Off again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>