<?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>PCAL6408a IO Expander INT-Debounce</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84827/pcal6408a-io-expander-int-debounce</link><description>Hi, 
 Working with a nRF9160dk here. 
 Documentation states, that the GPIO_INT_DEBOUNCE flag should just be ignored when configuring a pin, if it is not available in the driver. https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/zephyr/reference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Mar 2022 12:07:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84827/pcal6408a-io-expander-int-debounce" /><item><title>RE: PCAL6408a IO Expander INT-Debounce</title><link>https://devzone.nordicsemi.com/thread/356868?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 12:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dcf3cb5-12ff-404f-b0e2-ad4e77270152</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you very much for looking into this and for the notification!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCAL6408a IO Expander INT-Debounce</title><link>https://devzone.nordicsemi.com/thread/356862?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 12:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2d5dff9-7e63-4f9e-b83a-c475870b2e04</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Matthias,&lt;/p&gt;
&lt;p&gt;This is addressed here: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/43436"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/43436&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Feedback from the developer:&lt;/p&gt;
&lt;p&gt;&amp;quot;Regarding the assertion in &lt;tt&gt;gpio_pin_interrupt_configure()&lt;/tt&gt;, it is correct. Although the documentation does not state it in the best way, the &lt;tt&gt;GPIO_INT_DEBOUNCE&lt;/tt&gt; flag, despite its name, is supposed to be used in a call to &lt;tt&gt;gpio_pin_configure()&lt;/tt&gt;, not &lt;tt&gt;gpio_pin_interrupt_configure()&lt;/tt&gt;. See &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/8b4a3e23287f88dc270e1fe9400acd7be2963db2/include/drivers/gpio.h#L716-L718" rel="nofollow noopener noreferrer" target="_blank"&gt;this description&lt;/a&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks again for reporting this :)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCAL6408a IO Expander INT-Debounce</title><link>https://devzone.nordicsemi.com/thread/353661?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 14:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:982f25ed-0090-43c3-bf26-908e22eba9a3</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Mattias,&lt;/p&gt;
&lt;p&gt;Thank you for reporting this. I will forward this to the relevant developers and keep you updated.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCAL6408a IO Expander INT-Debounce</title><link>https://devzone.nordicsemi.com/thread/353624?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 13:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431ce197-6e96-45e3-be9a-57d9629fc977</guid><dc:creator>MaLu</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I realise that pin configure() might not have been the right function to look at, sorry.&lt;br /&gt;In&amp;nbsp;the pin Interrupt configure functions is essentially the same problem though.&lt;/p&gt;
&lt;p&gt;The Flag gets an assert before even getting to a driver level functionat gpio_pin_interrupt_configure():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
static inline int z_impl_gpio_pin_interrupt_configure(const struct device *port,
						      gpio_pin_t pin,
						      gpio_flags_t flags)
{
	const struct gpio_driver_api *api =
		(const struct gpio_driver_api *)port-&amp;gt;api;
	const struct gpio_driver_config *const cfg =
		(const struct gpio_driver_config *)port-&amp;gt;config;
	const struct gpio_driver_data *const data =
		(const struct gpio_driver_data *)port-&amp;gt;data;
	enum gpio_int_trig trig;
	enum gpio_int_mode mode;

	__ASSERT_NO_MSG((flags &amp;amp; GPIO_INT_DEBOUNCE) == 0);
// ...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>