Power-Save Options
CYW920706WCDEVAL Hardware User Guide Doc. No.: 002-16535 Rev. **
45
WICED_BT_TRACE("Cancelling deep sleep mode now...\n");
wiced_power_save_stop();
}
else
{
WICED_BT_TRACE("Disapproving deep sleep request for now to delay it...\n");
}
return 0;
}
}
void power_save_enter(void)
{
/* too late to try to stop it now, can only store state */
wiced_power_save_store_state(persistent_state_info);
WICED_BT_TRACE("Entering deep sleep now...\n");
}
void power_save_abort(void)
{
/* device has aborted the deep sleep, it will not retry further unless requested */
WICED_BT_TRACE("Deep Sleep request aborted.\n");
if ( doesAppStillWantToSleep )
{
WICED_BT_TRACE("Re-init deep sleep request...\n");
wiced_power_save_start(WICED_WAKE_SOURCE_ALL, 10000);
}
}