<?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>NCS Low Power Button Press/Release Detection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95652/ncs-low-power-button-press-release-detection</link><description>Hello, 
 I have found a few old posts about edge detection on gpio using ncs having higher power consumption and suggestions to use level detection. 
 What is the correct way to set this up? 
 Is there an equivalent of NRFX_GPIOTE_CONFIG_IN_SENSE_TOGGLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 12:54:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95652/ncs-low-power-button-press-release-detection" /><item><title>RE: NCS Low Power Button Press/Release Detection</title><link>https://devzone.nordicsemi.com/thread/405834?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 12:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704522f1-0173-4131-8a90-e1749c32bf75</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think that matters in recent versions of&amp;nbsp;NCS. 1-2 years ago,&amp;nbsp;&lt;span&gt;EDGE interrupt in Zephyr used GPIOTE IN event, but it now support sense/port event as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Low Power Button Press/Release Detection</title><link>https://devzone.nordicsemi.com/thread/404650?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 20:02:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f31026f2-bf5f-4a42-bc93-3f1c80f62362</guid><dc:creator>erickcinco</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&amp;nbsp;I was using&amp;nbsp;GPIO_INT_EDGE_BOTH for the flags param of&amp;nbsp;gpio_pin_interrupt_configure_dt(). It looks like its working but should I use (GPIO_INT_ENABLE | GPIO_INT_LEVELS_LOGICAL | GPIO_INT_TRIG_BOTH) instead?&lt;/p&gt;
&lt;p&gt;Referencing&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;comment in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90532/reducing-current-consumption-of-nrf5340-gpio-interrupts-configured-for-edge-triggering/379777"&gt;RE: reducing current consumption of nrf5340 GPIO interrupts configured for edge triggering&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Low Power Button Press/Release Detection</title><link>https://devzone.nordicsemi.com/thread/404644?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 18:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22488a1-bb65-4579-b929-3065da058309</guid><dc:creator>erickcinco</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS Low Power Button Press/Release Detection</title><link>https://devzone.nordicsemi.com/thread/404643?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 12:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:288a9646-dfc7-4a69-ad1c-63c3cc814b22</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to set the sense-edge-mask in the devicetree for this. Like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/tests/drivers/gpio/gpio_basic_api/boards/nrf52840dk_nrf52840_sense_edge.overlay"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/tests/drivers/gpio/gpio_basic_api/boards/nrf52840dk_nrf52840_sense_edge.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See the description here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/dts/bindings/gpio/nordic,nrf-gpio.yaml#L17"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/dts/bindings/gpio/nordic,nrf-gpio.yaml#L17&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>