<?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 disable SPI, PWM, ADC inside code/zephyr to save current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115846/how-to-disable-spi-pwm-adc-inside-code-zephyr-to-save-current</link><description>in nrf/system_off example, to disable uart with suspend 
 
 err = pm_device_action_run ( uart , PM_DEVICE_ACTION_SUSPEND ); 
 
 I want to know how to disable SPI, PWM, ADC? 
 please send the instructions. 
 
 Thanks, 
 Steve</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Oct 2024 12:40:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115846/how-to-disable-spi-pwm-adc-inside-code-zephyr-to-save-current" /><item><title>RE: how to disable SPI, PWM, ADC inside code/zephyr to save current</title><link>https://devzone.nordicsemi.com/thread/508147?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 12:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4530bc6b-74b2-4400-a0b3-409edf7008a4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;For these peripherals that are only application based, the pm_device_runtime_get and pm_device_runtime_put should be the functions to use for enabling/disabling these peripherals. You can refer to the&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/pm/device_runtime.html"&gt; device runtime power management framework here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>