MCUXpresso: Update the sleep implementation for LPC55S69 differences

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
pull/9910/head
Mahesh Mahadevan 2019-02-28 14:53:40 -06:00
parent b4aaad0f14
commit 98c8aa1ddd
1 changed files with 6 additions and 0 deletions

View File

@ -27,7 +27,13 @@ void hal_sleep(void)
void hal_deepsleep(void)
{
LPC_CLOCK_INTERNAL_IRC;
/* Enter Deep Sleep mode */
#if (defined(FSL_FEATURE_POWERLIB_NIOBE4_EXTEND ) && FSL_FEATURE_POWERLIB_NIOBE4_EXTEND )
POWER_EnterDeepSleep(APP_EXCLUDE_FROM_DEEPSLEEP, 0x0, WAKEUP_GPIO_INT0_0, 0x0);
#else
POWER_EnterDeepSleep(APP_EXCLUDE_FROM_DEEPSLEEP);
#endif
LPC_CLOCK_RUN;
}