Skip to content

Commit

Permalink
Clearning SLEEPDEEP bit after standby.
Browse files Browse the repository at this point in the history
This will prevent the WFI intstruction from sending the MCU into
standy.
  • Loading branch information
kevin-gillespie committed Jan 16, 2025
1 parent 98c1eca commit ab477d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/PeriphDrivers/Source/LP/lp_me30.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ void MXC_LP_EnterStandbyMode(void)

/* Go into Standby mode and wait for an interrupt to wake the processor */
__WFI();

/* Clear SLEEPDEEP bit to prevent WFI from entering deep sleep */
CLR_SLEEPDEEP();
}

void MXC_LP_EnterBackupMode(void)
Expand Down

0 comments on commit ab477d5

Please sign in to comment.