esp_pm: fix an issue and add an interface (backport to v4.3)

This commit is contained in:
ninh
2021-03-16 11:31:03 +08:00
parent 693aaef039
commit bd03a0e66a
3 changed files with 34 additions and 0 deletions

View File

@@ -63,6 +63,14 @@ typedef enum {
*/
esp_err_t esp_pm_configure(const void* config);
/**
* @brief Get implementation-specific power management configuration
* @param config pointer to implementation-specific configuration structure (e.g. esp_pm_config_esp32)
* @return
* - ESP_OK on success
* - ESP_ERR_INVALID_ARG if the pointer is null
*/
esp_err_t esp_pm_get_configuration(void* config);
/**
* @brief Opaque handle to the power management lock