<?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>low power input interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28950/low-power-input-interrupt</link><description>Hi 
 I am using gpio for input interrupt as below 
 nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
in_config.pull = NRF_GPIO_PIN_PULLUP;

err_code = nrf_drv_gpiote_in_init(PIN_IN, &amp;amp;in_config, in_pin_handler);
APP_ERROR_CHECK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jan 2018 15:01:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28950/low-power-input-interrupt" /><item><title>RE: low power input interrupt</title><link>https://devzone.nordicsemi.com/thread/114536?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 15:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43885bfe-4207-44cd-9ff9-4f12649e5057</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you configure it with TOGGLE polarity you could do something like that. You just have to read the state of the pin using the nrf_drv_gpiote_in_is_set(..) function inside the event handler.&lt;br /&gt;
If the state corresponds to a button press you start the timer, otherwise you stop the timer. If the timer fires it means it wasn&amp;#39;t stopped in time, and the long press has occurred.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low power input interrupt</title><link>https://devzone.nordicsemi.com/thread/114535?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 07:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da5590d-156d-4ec6-bb61-4ea2e5912915</guid><dc:creator>Dhaval Dalvadi</dc:creator><description>&lt;p&gt;May i use it for detect long press of button?
i mean when button press i will start app_timer for 10sec and after that i will check that it pressed or not.
Beacause after changing to port event it&amp;#39;s not working on long press&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: low power input interrupt</title><link>https://devzone.nordicsemi.com/thread/114534?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 06:42:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96a1399-64f5-4c08-9c98-9ed18125c0f5</guid><dc:creator>max</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Look here &lt;a href="https://devzone.nordicsemi.com/question/163665/port-event-vs-nrf_drv_gpiote_in_init/#163672"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>