Skip to content

Commit

Permalink
Fix shutdown mode function declaration for MAX32662 LP
Browse files Browse the repository at this point in the history
Shutdown function is defined as MXC_LP_EnterShutDownMode in lp.h however
is implemented as MXC_LP_EnterPowerDownMode. Change its name in
lp_me12.c to MXC_LP_EnterShutDownMode to make it consistent.

Signed-off-by: Tahsin Mutlugun <[email protected]>
  • Loading branch information
ttmut committed Oct 8, 2024
1 parent ffa42a7 commit 30ae3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/LP/lp_me12.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void MXC_LP_EnterBackupMode(void)
// Should never reach this line - device will jump to backup vector on exit from background mode.
}

void MXC_LP_EnterPowerDownMode(void)
void MXC_LP_EnterShutDownMode(void)
{
MXC_GCR->pm &= ~MXC_F_GCR_PM_MODE;
MXC_GCR->pm |= MXC_S_GCR_PM_MODE_SHUTDOWN;
Expand Down

0 comments on commit 30ae3af

Please sign in to comment.