Merge branch 'bugfix/fix_some_pm_issue_v4.2' into 'release/v4.2'

esp_pm: add an interface to get pm configuration (backport to v4.2)

See merge request espressif/esp-idf!13124
This commit is contained in:
Jiang Jiang Jian
2021-05-10 03:45:55 +00:00
3 changed files with 42 additions and 0 deletions

View File

@@ -59,6 +59,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