2021-11-06 05:26:37 -04:00
|
|
|
/*
|
2022-01-05 03:17:12 -05:00
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-06 05:26:37 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2022-01-17 21:32:56 -05:00
|
|
|
* @brief Power management config for ESP32-C2
|
2021-11-06 05:26:37 -04:00
|
|
|
*
|
|
|
|
* Pass a pointer to this structure as an argument to esp_pm_configure function.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
int max_freq_mhz; /*!< Maximum CPU frequency, in MHz */
|
|
|
|
int min_freq_mhz; /*!< Minimum CPU frequency to use when no locks are taken, in MHz */
|
|
|
|
bool light_sleep_enable; /*!< Enter light sleep when no locks are taken */
|
2022-01-17 21:32:56 -05:00
|
|
|
} esp_pm_config_esp32c2_t;
|
2021-11-06 05:26:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|