<?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>how can i synchronize these routines?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5405/how-can-i-synchronize-these-routines</link><description>hi.I have a question about synchronization. In main loop, there is a function sd_app_event_wait() which blocks until ble event from softdevice call occurs, so I want to put all communication-related tasks after that fanction in order to make sure that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Feb 2015 14:58:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5405/how-can-i-synchronize-these-routines" /><item><title>RE: how can i synchronize these routines?</title><link>https://devzone.nordicsemi.com/thread/18874?ContentTypeID=1</link><pubDate>Thu, 05 Feb 2015 14:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222a49fb-7970-401d-a1aa-def3175cc050</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Yes, it sounds you have understood this correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i synchronize these routines?</title><link>https://devzone.nordicsemi.com/thread/18873?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2015 06:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48369fa4-8767-426f-a1b4-359ea9fb891d</guid><dc:creator>DevineFelix</dc:creator><description>&lt;p&gt;Thank you, Stefan.
you say that softdevice callbacks have the same priority level as low priority app interrupts have, so each of them can not be preempted by the other? If so, there is no synchronization problem between softdevice callbacks and low priority app interrupts. sd_nvic_critical_region_enter() is needed by the routines in main loop to protect shared resources. Have i got the point? thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i synchronize these routines?</title><link>https://devzone.nordicsemi.com/thread/18872?ContentTypeID=1</link><pubDate>Tue, 03 Feb 2015 14:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a10f404-cd71-4fd7-8fad-5207eab758db</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Perhaps &lt;a href="https://devzone.nordicsemi.com/question/28011/sd_nvic_critical_region_enterexit-specifications/?answer=28768#post-id-28768"&gt;this thread&lt;/a&gt; can help you out.&lt;/p&gt;
&lt;p&gt;For synchronization with radio events, the application can enable &lt;a href="https://devzone.nordicsemi.com/question/28577/increase-delay-between-radio-event-and-cpu-cycle/?answer=28643#post-id-28643"&gt;radio notifications&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>