<?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>Is there any reason this simple GPIO timing should be much faster with SDK 11.0 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16949/is-there-any-reason-this-simple-gpio-timing-should-be-much-faster-with-sdk-11-0</link><description>I&amp;#39;ve got an application that does a lot of nRF51822 GPIO wiggling and the timing needs to be controlled. In one spot I simply set a pin high then low like this: 
 nrf_gpio_cfg_output(5);
nrf_gpio_pin_set(5);
nrf_gpio_pin_clear(5);
 
 I&amp;#39;ve ensured</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Oct 2016 07:52:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16949/is-there-any-reason-this-simple-gpio-timing-should-be-much-faster-with-sdk-11-0" /><item><title>RE: Is there any reason this simple GPIO timing should be much faster with SDK 11.0 ?</title><link>https://devzone.nordicsemi.com/thread/64985?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2016 07:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41644989-6558-452f-aee4-8a60771cdbd1</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;These functions are inline functions. Inline instructs the compiler to attempt to embed the function content into the calling code instead of executing an actual call, see &lt;a href="http://stackoverflow.com/questions/7762731/whats-the-difference-between-static-and-static-inline-function"&gt;this&lt;/a&gt; thread. Depending on your project and compiler optimization, the functions may be three lines of assembly, or several. You should look at the generated assembly code as RK suggested. You can for example do this in the debug window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any reason this simple GPIO timing should be much faster with SDK 11.0 ?</title><link>https://devzone.nordicsemi.com/thread/64986?ContentTypeID=1</link><pubDate>Sun, 09 Oct 2016 23:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00cffb7b-82f5-4dcb-a97e-032d9a49275f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;why don&amp;#39;t you look at the generated assembler and see for yourself. You&amp;#39;re not going to explain a difference of a couple of clock cycles without doing so.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>