File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 66#include <zephyr/kernel.h>
77#include <zephyr/pm/pm.h>
88#include <fsl_clock.h>
9+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (standby ))
910#include <fsl_rtc.h>
11+ #endif
1012#include <zephyr/init.h>
1113#include <zephyr/drivers/pinctrl.h>
1214#if CONFIG_GPIO && (DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (pin0 )) || \
@@ -220,7 +222,9 @@ __weak void pm_state_set(enum pm_state state, uint8_t substate_id)
220222 CLOCK_AttachClk (kLPOSC_to_OSTIMER_CLK );
221223 /* Clear the RTC wakeup bits */
222224 POWER_ClearWakeupStatus (DT_IRQN (DT_NODELABEL (rtc )));
225+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (standby ))
223226 RTC_ClearStatusFlags (RTC , kRTC_WakeupFlag );
227+ #endif
224228 NVIC_ClearPendingIRQ (DT_IRQN (DT_NODELABEL (rtc )));
225229 sys_clock_idle_exit ();
226230 sys_clock_set_timeout (0 , true);
You can’t perform that action at this time.
0 commit comments