Function esp_idf_svc::sys::esp_deep_sleep

source ยท
pub unsafe extern "C" fn esp_deep_sleep(time_in_us: u64) -> !
Expand description

@brief Enter deep-sleep mode

The device will automatically wake up after the deep-sleep time Upon waking up, the device calls deep sleep wake stub, and then proceeds to load application.

Call to this function is equivalent to a call to esp_deep_sleep_enable_timer_wakeup followed by a call to esp_deep_sleep_start.

@note The function does not do a return (no rejection).. Even if wakeup source set before the sleep request it goes to deep sleep anyway.

@param time_in_us deep-sleep time, unit: microsecond