AnsweredAssumed Answered

Clean up after LLWU wakeup

Question asked by Eugene Hiihtaja on Jul 13, 2018
Latest reply on Jul 16, 2018 by Hui_Ma

Hello !

 

In case of LLWU wakeup ( K82 ) and usage external pins for as wake up source you recommend to execute this code

at early boot phase.

 

int main(void)
{
/* Wakeup from VLLS. */
SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
uint32_t resetStatus = RCM_GetPreviousResetSources(RCM);
if (kRCM_SourceWakeup & resetStatus)
{
  PMC_ClearPeriphIOIsolationFlag(PMC);
  NVIC_ClearPendingIRQ(LLWU_IRQn);
}

....

 

But what should be clean up sequence in case of other wakeup sources ?

Like RTC, USB, CMP and etc.

 

Regards,

Eugene

Outcomes