mirror of https://github.com/ARMmbed/mbed-os.git
Resolving: unused variable 'mode' [-Wunused-variable]. mode is used to determine kMCG_ModePEE in case of PEE to switch back manually as default after wakeup MCG is in PBE mode. this is required only when PEE mode is required
parent
254f869753
commit
dfd9fc7f73
|
@ -28,8 +28,11 @@ void hal_sleep(void)
|
||||||
void hal_deepsleep(void)
|
void hal_deepsleep(void)
|
||||||
{
|
{
|
||||||
#if (defined(FSL_FEATURE_SOC_MCG_COUNT) && FSL_FEATURE_SOC_MCG_COUNT)
|
#if (defined(FSL_FEATURE_SOC_MCG_COUNT) && FSL_FEATURE_SOC_MCG_COUNT)
|
||||||
|
#if defined(kMCG_ModePEE)
|
||||||
mcg_mode_t mode = CLOCK_GetMode();
|
mcg_mode_t mode = CLOCK_GetMode();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
|
SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
|
||||||
|
|
||||||
SMC_SetPowerModeVlps(SMC);
|
SMC_SetPowerModeVlps(SMC);
|
||||||
|
|
Loading…
Reference in New Issue