<?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 to use PM suspend mode in Zephyr and which one?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98070/how-to-use-pm-suspend-mode-in-zephyr-and-which-one</link><description>Hi, 
 I am working on the nRF52840DK using Zephyr NCS v2.1.2 on Windows. 
 I am using the Zephyr CAF example. in which I have added my own sensors and it is working fine. 
 Now I want to put the application into Suspend mode (i.e. System ON mode), and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Mar 2023 13:47:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98070/how-to-use-pm-suspend-mode-in-zephyr-and-which-one" /><item><title>RE: How to use PM suspend mode in Zephyr and which one?</title><link>https://devzone.nordicsemi.com/thread/417440?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 13:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb9fe559-fc3e-4875-9a12-515ee684c975</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The way that you can see that all of our samples just uses a sleep function in the main loop is sufficient for the chip to go to sleep.&lt;/p&gt;
&lt;p&gt;As for the timer, you just set up the timer before you go to sleep. You can, for example, use an implementation looking something like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/timing/timers.html#using-a-timer-expiry-function"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/timing/timers.html#using-a-timer-expiry-function&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>