<?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>wait function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5824/wait-function</link><description>Hi 
 during setup of a peripheral at startup, I need to add some wait periods in between steps of the setup. Is there some function like waitMS(int time) or something, that would make the processor wait during a number of milliseconds, without compromising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Feb 2017 21:52:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5824/wait-function" /><item><title>RE: wait function</title><link>https://devzone.nordicsemi.com/thread/20348?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 21:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac12f695-5af1-4cea-87b0-69e90071ba15</guid><dc:creator>Carlos Villavicencio</dc:creator><description>&lt;p&gt;Great! Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wait function</title><link>https://devzone.nordicsemi.com/thread/20349?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2015 07:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbdddad-ec51-4971-8b29-07f93be120b7</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;You could create your own waitMS() using the app_timers.  Is the SoftDevice implemented at this point in the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wait function</title><link>https://devzone.nordicsemi.com/thread/20347?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2015 07:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6722a6f-58a1-4fcc-a4a9-60f969f52fca</guid><dc:creator>Philip Freidin</dc:creator><description>&lt;p&gt;The header file &amp;quot;nrf_delay.h&amp;quot;  has an in-line delay routine:&lt;/p&gt;
&lt;p&gt;void nrf_delay_us(uint32_t volatile number_of_us)&lt;/p&gt;
&lt;p&gt;and the declaration for&lt;/p&gt;
&lt;p&gt;void nrf_delay_ms(uint32_t volatile number_of_ms);&lt;/p&gt;
&lt;p&gt;If you are using Keil V5, with packs, you will find the source here:&lt;/p&gt;
&lt;p&gt;C:\Keil_v5\ARM\Pack\NordicSemiconductor\nRF_Drivers\1.2.1\hal\nrf_delay.c&lt;/p&gt;
&lt;p&gt;both the us and ms delay code are just spin loops.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>