<?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>Configuration of pins at runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74141/configuration-of-pins-at-runtime</link><description>Hello, 
 I am writing the device tree for our custom board, which uses an nRF9160 SiP. This approach to configuring the hardware 
 is new to me, since my experience is with micro-controllers where the hardware is configured at runtime. 
 With the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Feb 2022 11:43:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74141/configuration-of-pins-at-runtime" /><item><title>RE: Configuration of pins at runtime</title><link>https://devzone.nordicsemi.com/thread/351073?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 11:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebba61db-1e3a-4d45-be98-0514b29858b2</guid><dc:creator>Bruno Saraiva</dc:creator><description>&lt;p&gt;It is 10 months later... Does Zephyr now allow for configuring GPIO&amp;#39;s in runtime?&lt;br /&gt;We have a pin that should be used as an ADC signal during most of the time, but before going into sleep mode we would need this pin to become a GPIO Input with enabled interrupt, so as to waking up the MCU (and then back again to ADC during &amp;quot;normal mode&amp;quot;).&lt;br /&gt;&lt;br /&gt;If this is not available and we use direct configuration of the MCU&amp;#39;s registers, what are the &amp;quot;special concerns&amp;quot; in the device tree that we have to take in order not to mess up Zephyr usage of the pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration of pins at runtime</title><link>https://devzone.nordicsemi.com/thread/306833?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 13:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6293410-1805-4f5a-aa39-820ef51ea681</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;Unfortunately, Zephyr does not have a runtime pin control subsystem yet. So if you want to change the device tree during run time, you&amp;#39;ll need to use the HAL directly.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Heidi&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>