Skip to content

Commit 98c8aa1

Browse files
committed
MCUXpresso: Update the sleep implementation for LPC55S69 differences
Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent b4aaad0 commit 98c8aa1

File tree

1 file changed

+6
-0
lines changed
  • targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC

1 file changed

+6
-0
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/sleep.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ void hal_sleep(void)
2727
void hal_deepsleep(void)
2828
{
2929
LPC_CLOCK_INTERNAL_IRC;
30+
3031
/* Enter Deep Sleep mode */
32+
#if (defined(FSL_FEATURE_POWERLIB_NIOBE4_EXTEND ) && FSL_FEATURE_POWERLIB_NIOBE4_EXTEND )
33+
POWER_EnterDeepSleep(APP_EXCLUDE_FROM_DEEPSLEEP, 0x0, WAKEUP_GPIO_INT0_0, 0x0);
34+
#else
3135
POWER_EnterDeepSleep(APP_EXCLUDE_FROM_DEEPSLEEP);
36+
#endif
37+
3238
LPC_CLOCK_RUN;
3339
}

0 commit comments

Comments
 (0)