<?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>Will the app timer timeout handler be executed in main context if I use app_schedule?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36631/will-the-app-timer-timeout-handler-be-executed-in-main-context-if-i-use-app_schedule</link><description>I want to use app timer to get an power saving delay to wait some external chip operation done. So I use an app timer to set a flag when timer expired and in the wait function just check the flag to be set, if it is not set, reschedule the timer and put</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jul 2018 12:26:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36631/will-the-app-timer-timeout-handler-be-executed-in-main-context-if-i-use-app_schedule" /><item><title>RE: Will the app timer timeout handler be executed in main context if I use app_schedule?</title><link>https://devzone.nordicsemi.com/thread/141141?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 12:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:393981ac-a367-4635-ab2f-91dca6d177b2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes. The app timer is integrated with the scheduler, so if you use the scheduler in your application (define &lt;code&gt;APP_TIMER_CONFIG_USE_SCHEDULER&lt;/code&gt; and call &lt;code&gt;app_sched_execute()&lt;/code&gt; in the main loop), then app timer timeout handlers will be executed in the main context.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>