<?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>How to use sense-edge-mask?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88382/how-to-use-sense-edge-mask</link><description>I am registering interrupts for many pins: 
 
 This only works for the first 8 pins, because from what I understand the GPIOTE peripheral is used and that has only 8 channels. 
 As a solution I found that I should use sense-edge-mask in my device tree</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 May 2022 16:08:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88382/how-to-use-sense-edge-mask" /><item><title>RE: How to use sense-edge-mask?</title><link>https://devzone.nordicsemi.com/thread/370041?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 16:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:483a6ab2-86a3-45c1-9d27-c7e3255cc095</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to configure the GPIOs as inputs as well, see for instance the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1-1/samples/boards/bbc_microbit/pong/src/main.c#L497-L500"&gt;BBC Micro:bit sample&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I tested your code along with the following addition:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;gpio_pin_configure(gpio_dev, 13, GPIO_INPUT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m then seeing &amp;quot;Pin toggled&amp;quot; when pressing button 0 on the nRF52 DK.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>