<?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>Can i get the guide to implement the timer in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94662/can-i-get-the-guide-to-implement-the-timer-in-nrf-connect-sdk</link><description>------------------------------------------------------------------------------- APP_TIMER_DEF(xyz); 
 static void timer_handler(void* pContext) { 
 } 
 void timer_init(void) { app_timer_create(&amp;amp;xyz,APP_TIMER_MODE_REPEATED,timer_handler); app_timer_start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Dec 2022 13:17:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94662/can-i-get-the-guide-to-implement-the-timer-in-nrf-connect-sdk" /><item><title>RE: Can i get the guide to implement the timer in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/399936?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 13:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1473b825-1def-4a14-a677-c9321c2f7fb5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to create a timer similar to the app_timer from nRF5 SDK, I would recommend you to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/zephyr/develop/index.html"&gt;k_timer API&lt;/a&gt;&lt;span&gt;&amp;nbsp;(last code section). The linked documentation page gives examples on how to use the API. The other code section is&amp;nbsp;using a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/nrf/releases/release-notes-1.6.0.html#zephyr-workqueue-api-migration"&gt;deprecated&amp;nbsp;Zephyr Workqueue API&lt;/a&gt;. If you want to use&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/zephyr/kernel/services/threads/workqueue.html"&gt;Workqueue Threads&lt;/a&gt;, you should use the new API according to the migration guide.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>