<?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>Set GPIO input for interrupt on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116098/set-gpio-input-for-interrupt-on-custom-board</link><description>Hi all 
 I&amp;#39;m working on custom board build with an nrf9161. Right now I&amp;#39;d like to use a gpio as input with interrupt for i2c captor icm20948. So for I&amp;#39;ve searched and I think I have 2 solutions but which one is better 
 
 First solution : in my common</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Nov 2024 16:26:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116098/set-gpio-input-for-interrupt-on-custom-board" /><item><title>RE: Set GPIO input for interrupt on custom board</title><link>https://devzone.nordicsemi.com/thread/509305?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 16:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1e552f-b27a-4ef3-95b2-e3feb4c7e7ce</guid><dc:creator>Menon</dc:creator><description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;Hello,&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div dir="auto"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;I believe the second solution you mentioned is more reliable, and I feel this is the proper method for integrating a sensor. I haven’t worked with the specific sensor you mentioned, but in the second solution you provided, you referenced a GPIO line that generates an interrupt event for an I2C device. This is a more correct and specific way of handling sensor interrupts compared to using the gpio-keys mechanism. However, as you mentioned, you would need to develop the driver yourselves. Perhaps you can refer to the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-7-device-driver-model/"&gt;Device Driver Model lesson from the Nordic Developer Academy&lt;/a&gt;, which explains custom driver development.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Abhijith&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set GPIO input for interrupt on custom board</title><link>https://devzone.nordicsemi.com/thread/509246?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 13:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a86242f3-753b-49d2-8734-16418d958ead</guid><dc:creator>simon884</dc:creator><description>&lt;p&gt;I&amp;#39;m working with SDK v2.5.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set GPIO input for interrupt on custom board</title><link>https://devzone.nordicsemi.com/thread/509244?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 13:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c86ce71-0089-4458-a0ae-c25817f070d0</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Letting you know that I have been assigned to this case and I have started looking into this. Could you share the SDK version you are using here?&lt;/p&gt;
&lt;p&gt;Kimd Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>