<?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>regarding gpio functionality</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34144/regarding-gpio-functionality</link><description>hi, 
 We are using nordic nRF52832 in our project as per our requirement we have to implement sleep and wake up mode with the help of button interrupt. our use case is that after long press of 3 seconds device starts advertising(exit sleep mode). and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 23 Feb 2019 05:54:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34144/regarding-gpio-functionality" /><item><title>RE: regarding gpio functionality</title><link>https://devzone.nordicsemi.com/thread/172600?ContentTypeID=1</link><pubDate>Sat, 23 Feb 2019 05:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da17c739-1dde-4069-a753-9c39406a6550</guid><dc:creator>vjgarg</dc:creator><description>&lt;p&gt;Thanks for your reply Einar Thorsrud&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regarding gpio functionality</title><link>https://devzone.nordicsemi.com/thread/131497?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 11:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9253f84-61df-439f-a68f-8eee2ef0c30e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can implement what you want by detecting the button push and starting a timer (typically using the app_timer library) to measure the time until the button is released. This is implemented in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_bsp.html?cp=4_0_0_3_6"&gt;BSP&lt;/a&gt;&amp;nbsp;that is used in the SDK examples, but it may be unnecessarily complex. Alternatively you could implement it yourself, for example by combining the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_button.html?cp=4_0_0_3_7"&gt;Button handling library&lt;/a&gt;&amp;nbsp;to do debouncing and the app_timer do measure the duration of the button press.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>