<?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>cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10172/cant-understand-where-the-schedular-uses-the-timer</link><description>I have the following code 
 // Initialize timer module, making it use the scheduler
 APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, true);


	//Create timer 1s
	err_code = app_timer_create(&amp;amp;timer_1s_id,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Nov 2015 16:24:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10172/cant-understand-where-the-schedular-uses-the-timer" /><item><title>RE: cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/thread/37724?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 16:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cfa2eae-a934-4354-85a8-c7cbd388c845</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;and when scheduler is used, where in the code the scheduler add the timer events to it&amp;#39;s queue, this is my question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/thread/37723?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 16:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbe3710e-19d6-4a0b-88d2-555722d70e22</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;&lt;code&gt;APP_TIMER_APPSH_INIT()&lt;/code&gt; is used to initialize the application time when you are using the scheduler. If the scheduler is not used, you should initialize the application timer using &lt;code&gt;APP_TIMER_INIT()&lt;/code&gt; and set the last parameter to false.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/thread/37722?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 16:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c49aff7-89a5-4430-a71b-89795ec70367</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;but to scheduler an event you call &lt;code&gt;app_sched_event_put&lt;/code&gt; but I dont see this code in &lt;code&gt;APP_TIMER_APPSH_INIT&lt;/code&gt; add add the timer handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/thread/37721?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 14:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ff8aaf-3f99-4b17-aa85-4d8ac498ba55</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Then I am not sure I fully understand your question. The Scheduler it self has no concept of time. It just allows you to schedule events by putting them in a queue and then check the queue and process events by calling &lt;code&gt;app_sched_execute()&lt;/code&gt;, which you typically call regularly from your main loop (in every iteration).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/thread/37720?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 13:05:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91c10c0f-fdd7-43be-9706-d129ab2e7746</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;app_timer_appsh.c contain two functions &lt;code&gt;app_timer_evt_get&lt;/code&gt; and &lt;code&gt;app_timer_evt_schedule&lt;/code&gt; which are note called from &lt;code&gt;app_timer_create&lt;/code&gt; so I still didnt get it where is the relation between time and scheduler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant understand where the schedular uses the timer</title><link>https://devzone.nordicsemi.com/thread/37719?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 12:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba0e6e3a-558c-4308-a2d6-d57efc33a2ed</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The application timer can be used without the scheduler, and vise versa. If you use both the application timer and the scheduler, you should use &lt;code&gt;APP_TIMER_APPSH_INIT()&lt;/code&gt; to initialize the application timer, as you do in your code. The code that makes the application timer use the scheduler are located in app_timer_appsh.c and app_timer_appsh.h, which you will find under components\libraries\timer\ in the SDK.&lt;/p&gt;
&lt;p&gt;For a practical guide to the application timer I recommend you to walk through the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;Application Timer Tutorial&lt;/a&gt;. Then, if you need to use the scheduler, you should walk through the &lt;a href="https://devzone.nordicsemi.com/tutorials/23/scheduler-tutorial/"&gt;Scheduler Tutorial&lt;/a&gt; as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>