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
35a436672b
commit
251fae34ac
|
@ -28,8 +28,11 @@ void hal_sleep(void)
|
|||
void hal_deepsleep(void)
|
||||
{
|
||||
#if (defined(FSL_FEATURE_SOC_MCG_COUNT) && FSL_FEATURE_SOC_MCG_COUNT)
|
||||
#if defined(kMCG_ModePEE)
|
||||
mcg_mode_t mode = CLOCK_GetMode();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
|
||||
|
||||
SMC_SetPowerModeVlps(SMC);
|
||||
|
|
Loading…
Reference in New Issue