<?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>Configuring GPIO as High Drive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114650/configuring-gpio-as-high-drive</link><description>Hi, 
 I have done some searching and cannot find a direct answer to this. I have a gpio pin defined in a custom device in my board dts. I want to set this pin to high drive. I have been using the flag 
 
 NRF_GPIO_DRIVE_S0H1 but I get compile errors saying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Sep 2024 11:03:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114650/configuring-gpio-as-high-drive" /><item><title>RE: Configuring GPIO as High Drive</title><link>https://devzone.nordicsemi.com/thread/502084?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 11:03:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b3b119-7869-4ec0-be3a-569e5e849b36</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Include this in the file you are doing the pin_configure.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;zephyr/dt-bindings/gpio/nordic-nrf-gpio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring GPIO as High Drive</title><link>https://devzone.nordicsemi.com/thread/502070?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 10:04:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5b94120-1283-4022-bfbc-ff37111d3d34</guid><dc:creator>aarondashine</dc:creator><description>&lt;p&gt;Thank you for the response. It does get to the right point in the debugger when I include a&amp;nbsp;number instead of the defined flag.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which header file do I need to include to be able to access the defines for the drive signals? I will just include the flag in the gpio_pin_configure instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring GPIO as High Drive</title><link>https://devzone.nordicsemi.com/thread/502063?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 09:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4611ae0-19dd-4522-952d-aa4420fb4753</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Easier way of debugging is to put a breakpoint at &lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/gpio/gpio_nrfx.c#L69"&gt;zephyr\drivers\gpio\gpio_nrfx.c&lt;/a&gt;&amp;nbsp;and run your code in the debugger to see if the execution is reaching the right switch statement. If not then see what is missing to make it happen.&lt;/p&gt;
&lt;p&gt;These are not device tree entries as far as I know as these flags can vary with different SoCs. You can add the flag when you use gpio_pin_configure. Probably cannot be extracted from device tree? Not sure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>