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 6
6
#include <zephyr/kernel.h>
7
7
#include <zephyr/pm/pm.h>
8
8
#include <fsl_clock.h>
9
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (standby ))
9
10
#include <fsl_rtc.h>
11
+ #endif
10
12
#include <zephyr/init.h>
11
13
#include <zephyr/drivers/pinctrl.h>
12
14
#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)
220
222
CLOCK_AttachClk (kLPOSC_to_OSTIMER_CLK );
221
223
/* Clear the RTC wakeup bits */
222
224
POWER_ClearWakeupStatus (DT_IRQN (DT_NODELABEL (rtc )));
225
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (standby ))
223
226
RTC_ClearStatusFlags (RTC , kRTC_WakeupFlag );
227
+ #endif
224
228
NVIC_ClearPendingIRQ (DT_IRQN (DT_NODELABEL (rtc )));
225
229
sys_clock_idle_exit ();
226
230
sys_clock_set_timeout (0 , true);
You can’t perform that action at this time.
0 commit comments