<?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>app timer and scheduler issues and enhancements</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42904/app-timer-and-scheduler-issues-and-enhancements</link><description>I&amp;#39;m trying to make my code now interface to the SDK only through the API, but at the moment this does not suit my requirements. 
 In particular I have issues with the implementation of the app timer / app scheduler 
 If I understand the operation correctly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jan 2019 16:58:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42904/app-timer-and-scheduler-issues-and-enhancements" /><item><title>RE: app timer and scheduler issues and enhancements</title><link>https://devzone.nordicsemi.com/thread/167740?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 16:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63ccfab6-3437-494e-8144-e78ea2dade1c</guid><dc:creator>Phil Young</dc:creator><description>&lt;p&gt;What might be a useful implementation is to allow a timer object to contain a pointer to a scheduler, and to define a structure for a scheduler so that multiple schedulers can be instantiated.&lt;/p&gt;
&lt;p&gt;Then when a timer expires the timer could schedule the asynchronous callback on a scheduler specified by the user allowing for flexibility in scheduling, for example I would then define schedulers for fast events and events that might take some time to execute, or simply assign schedulers to different priorities.&lt;/p&gt;
&lt;p&gt;my system currently uses a co-operative scheduling system to avoid using an RTOS and this is effectively what I do using a scheduler class, but in order to use the system timer I have to use a second callback that acts as a proxy and re-schedules events from the app_scheduler to different schedulers so that low priority events can be deferred.&lt;/p&gt;
&lt;p&gt;It works but it&amp;#39;s not as clean as it could be with the above suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app timer and scheduler issues and enhancements</title><link>https://devzone.nordicsemi.com/thread/167737?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 16:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:112f168c-fff0-4034-b5b5-8999c78f77c2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As you have already identified, the scheduler in the nRF5 SDK is very simple, there is no priority, just a simple fifo queue. The only thing I can say is that there will be changes&amp;nbsp;coming that will address your input.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>