<?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>R/W GPIO port in Zephyr instead of pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105009/r-w-gpio-port-in-zephyr-instead-of-pins</link><description>Hi, 
 
 Simple question - is there a way in Zephyr to work with GPIO ports instead of individual pins? Can one read a whole port in one go or write a port to drive multiple pins simultaneously? So far I&amp;#39;ve only seen individual pins being manipulated one</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Oct 2023 14:15:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105009/r-w-gpio-port-in-zephyr-instead-of-pins" /><item><title>RE: R/W GPIO port in Zephyr instead of pins</title><link>https://devzone.nordicsemi.com/thread/452312?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 14:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0ea9e3-5182-4e12-955f-1e5828783a45</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Happy to help.&lt;/p&gt;
&lt;p&gt;I have not come across that sample, but as the functionality is available, it should not be hard to use.&lt;/p&gt;
&lt;p&gt;BR, Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: R/W GPIO port in Zephyr instead of pins</title><link>https://devzone.nordicsemi.com/thread/452271?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 12:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:393d8a51-8843-4708-b205-a44ca0fbc657</guid><dc:creator>DevCon:52</dc:creator><description>&lt;p&gt;Thank you, will do - I see, precisely what I was looking for. Could have dug a bit more!&lt;/p&gt;
&lt;p&gt;Noticed now if I&amp;#39;m not mistaken there is only one sample that uses the port function to drive a 7 seg display. Just seemed like it would be a common thing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: R/W GPIO port in Zephyr instead of pins</title><link>https://devzone.nordicsemi.com/thread/452256?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 12:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:077d27bf-315a-4323-abdc-c4150aecb379</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;Yes, that functionality is supported by Nordic chips, and you can read in the product specification about the registers within the gpio peripheral.&lt;/p&gt;
&lt;p&gt;Also, Zephyr GPIO API provides the functionality to toggle, set, clear the pins(bits) of the port.&lt;/p&gt;
&lt;p&gt;zephyr/drivers/gpio.h has functions like&amp;nbsp;gpio_port_set_bits and gpio_port_clear_bits&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1698235754748v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I encourage you to explore the &lt;a href="https://docs.zephyrproject.org/latest/hardware/peripherals/gpio.html"&gt;Zephyr GPIO API&lt;/a&gt;, the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fgpio.html&amp;amp;cp=5_0_0_5_8_1_0&amp;amp;anchor=register.OUT"&gt;GPIO peripheral&lt;/a&gt; in the SoC documentation, and if needed the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/gpio/hal.html"&gt;NRFX HAL GPIO&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR, Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>