Function esp_idf_sys::esp_pm_lock_delete
source ยท pub unsafe extern "C" fn esp_pm_lock_delete(
handle: esp_pm_lock_handle_t,
) -> esp_err_t
Expand description
@brief Delete a lock created using esp_pm_lock
The lock must be released before calling this function.
This function must not be called from an ISR.
@param handle handle obtained from esp_pm_lock_create function @return - ESP_OK on success - ESP_ERR_INVALID_ARG if the handle argument is NULL - ESP_ERR_INVALID_STATE if the lock is still acquired - ESP_ERR_NOT_SUPPORTED if CONFIG_PM_ENABLE is not enabled in sdkconfig