<?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>toggle GPIO as fast as possible</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34196/toggle-gpio-as-fast-as-possible</link><description>I want to use C code to toggle the GPIO lines as fast as possible in C. I do not want to use any libraries.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 May 2018 04:26:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34196/toggle-gpio-as-fast-as-possible" /><item><title>RE: toggle GPIO as fast as possible</title><link>https://devzone.nordicsemi.com/thread/131658?ContentTypeID=1</link><pubDate>Fri, 11 May 2018 04:26:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b9c9bc-3d01-45f3-8af6-9a5eae893eba</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: toggle GPIO as fast as possible</title><link>https://devzone.nordicsemi.com/thread/131637?ContentTypeID=1</link><pubDate>Thu, 10 May 2018 15:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03d7c0aa-8c73-4c29-af51-c7c0d58423b1</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You could do this in a loop:&lt;/p&gt;
&lt;p&gt;NRF_GPIO-&amp;gt;OUTSET = (1UL &amp;lt;&amp;lt; pin_number);&lt;/p&gt;
&lt;p&gt;NRF_GPIO-&amp;gt;OUTCLR = (&lt;span&gt;1UL &amp;lt;&amp;lt; pin_number);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Blatantly stolen from nrf_gpio.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>