<?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>GPIOTE and nrf_gpio_cfg_input/output</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/203/gpiote-and-nrf_gpio_cfg_input-output</link><description>Hi, I am using a app_gpiote_user_register to register a gpiote user and then enabling it, before I set the pins this user detect to be input using nrf_gpio_cfg_input. When my program is running I have to switch the pin to be output for some occasion using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2013 09:13:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/203/gpiote-and-nrf_gpio_cfg_input-output" /><item><title>RE: GPIOTE and nrf_gpio_cfg_input/output</title><link>https://devzone.nordicsemi.com/thread/1133?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2013 09:13:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d8d6bcd-2965-473c-9d96-a5bfd0458d74</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;As you can see in the source code of app_gpiote.c, it manipulates the PIN_CNF register in the GPIO peripheral, to set the SENSE level for the pins (lines 230-251). This register is also manipulated by the nrf_gpio_cfg_* functions, and therefore the configuration set by app_gpiote will be lost when you manually change the direction of the pin afterwards.&lt;/p&gt;
&lt;p&gt;Since app_gpiote verifies the configuration each time it is enabled, calling app_gpiote_enable() after you&amp;#39;ve set the pins back to input pins should be a usable workaround.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>