Function esp_idf_sys::esp_pm_lock_release

source ยท
pub unsafe extern "C" fn esp_pm_lock_release(
    handle: esp_pm_lock_handle_t,
) -> esp_err_t
Expand description

@brief Release the lock taken using esp_pm_lock_acquire.

Call to this functions removes power management restrictions placed when taking the lock.

Locks are recursive, so if esp_pm_lock_acquire is called a number of times, esp_pm_lock_release has to be called the same number of times in order to actually release the lock.

This function may be called from an ISR.

This function is not thread-safe w.r.t. calls to other esp_pm_lock_* functions for the same handle.

@param handle handle obtained from esp_pm_lock_create function @return - ESP_OK on success - ESP_ERR_INVALID_ARG if the handle is invalid - ESP_ERR_INVALID_STATE if lock is not acquired - ESP_ERR_NOT_SUPPORTED if CONFIG_PM_ENABLE is not enabled in sdkconfig