File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 14
14
#include <esb.h>
15
15
#include <zephyr/kernel.h>
16
16
#include <zephyr/types.h>
17
+ #include <zephyr/pm/device_runtime.h>
17
18
#include <dk_buttons_and_leds.h>
18
19
#if defined(CONFIG_CLOCK_CONTROL_NRF2 )
19
20
#include <hal/nrf_lrcconf.h>
@@ -203,6 +204,18 @@ int main(void)
203
204
204
205
LOG_INF ("Enhanced ShockBurst prx sample" );
205
206
207
+ #if defined(CONFIG_SOC_SERIES_NRF54HX )
208
+ const struct device * dtm_uart = DEVICE_DT_GET_OR_NULL (DT_CHOSEN (zephyr_console ));
209
+
210
+ if (dtm_uart != NULL ) {
211
+ int ret = pm_device_runtime_get (dtm_uart );
212
+
213
+ if (ret < 0 ) {
214
+ printk ("Failed to get DTM UART runtime PM: %d\n" , ret );
215
+ }
216
+ }
217
+ #endif /* defined(CONFIG_SOC_SERIES_NRF54HX) */
218
+
206
219
err = clocks_start ();
207
220
if (err ) {
208
221
return 0 ;
Original file line number Diff line number Diff line change 14
14
#include <zephyr/devicetree.h>
15
15
#include <zephyr/kernel.h>
16
16
#include <zephyr/types.h>
17
+ #include <zephyr/pm/device_runtime.h>
17
18
#include <dk_buttons_and_leds.h>
18
19
#if defined(CONFIG_CLOCK_CONTROL_NRF2 )
19
20
#include <hal/nrf_lrcconf.h>
@@ -208,6 +209,18 @@ int main(void)
208
209
209
210
LOG_INF ("Enhanced ShockBurst ptx sample" );
210
211
212
+ #if defined(CONFIG_SOC_SERIES_NRF54HX )
213
+ const struct device * dtm_uart = DEVICE_DT_GET_OR_NULL (DT_CHOSEN (zephyr_console ));
214
+
215
+ if (dtm_uart != NULL ) {
216
+ int ret = pm_device_runtime_get (dtm_uart );
217
+
218
+ if (ret < 0 ) {
219
+ printk ("Failed to get DTM UART runtime PM: %d\n" , ret );
220
+ }
221
+ }
222
+ #endif /* defined(CONFIG_SOC_SERIES_NRF54HX) */
223
+
211
224
err = clocks_start ();
212
225
if (err ) {
213
226
return 0 ;
You can’t perform that action at this time.
0 commit comments