<?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>Disabling/enabling hardware components at runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110000/disabling-enabling-hardware-components-at-runtime</link><description>Dear All, 
 I need to implement fully disabling and enabling several hardware components and drivers (UART, comparator, PWW, etc.) that I&amp;#39;ll need only when the user asks for certain functions of the device. I&amp;#39;m using SDK V2.6.0, which, if I&amp;#39;m not wrong</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 28 Apr 2024 16:34:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110000/disabling-enabling-hardware-components-at-runtime" /><item><title>RE: Disabling/enabling hardware components at runtime</title><link>https://devzone.nordicsemi.com/thread/480969?ContentTypeID=1</link><pubDate>Sun, 28 Apr 2024 16:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc219b35-8525-4028-aace-bd1c06868221</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks Jared.&lt;/p&gt;
&lt;p&gt;For the Uart, I ended up with calls to pm_device_action_run() with actions PM_DEVICE_ACTION_SUSPEND and PM_DEVICE_ACTION_RESUME. Actions PM_DEVICE_ACTION_TURN_OFF/ON are not implemented for the Uart.&lt;/p&gt;
&lt;p&gt;I bookmarked the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/boards/nrf/nrfx"&gt;example&lt;/a&gt; from your answer for just in case I needed in the future.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling/enabling hardware components at runtime</title><link>https://devzone.nordicsemi.com/thread/477538?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 11:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0977c526-31e6-4c98-b8eb-bd018dd0f706</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In some cases the device power management module will call nrfx uninit function of the device peripheral when you run pw_device_action_run() with SUSPEND.&lt;/p&gt;
&lt;p&gt;In some cases there is no implementation of the SUSPEND task for the&amp;nbsp;peripheral&amp;nbsp;which means that it will have no effect for that device. Therefore, I suggest using nrfx directly and call the uninit function of each peripheral when you&amp;#39;re done using them. Same goes for init.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/boards/nrf/nrfx"&gt;this &lt;/a&gt;sample,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>