Function esp_idf_sys::gpio_deep_sleep_hold_en
source · pub unsafe extern "C" fn gpio_deep_sleep_hold_en()
Expand description
@brief Enable all digital gpio pads hold function during Deep-sleep.
Enabling this feature makes all digital gpio pads be at the holding state during Deep-sleep. The state of each pad holds is its active configuration (not pad’s sleep configuration!).
Note that this pad hold feature only works when the chip is in Deep-sleep mode. When the chip is in active mode, the digital gpio state can be changed freely even you have called this function.
After this API is being called, the digital gpio Deep-sleep hold feature will work during every sleep process. You
should call gpio_deep_sleep_hold_dis
to disable this feature.