pm.h 695 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stdint.h>
  8. #include <stdbool.h>
  9. #include "esp_err.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /**
  14. * @brief Power management config for ESP32-C2
  15. *
  16. * Pass a pointer to this structure as an argument to esp_pm_configure function.
  17. */
  18. typedef struct {
  19. int max_freq_mhz; /*!< Maximum CPU frequency, in MHz */
  20. int min_freq_mhz; /*!< Minimum CPU frequency to use when no locks are taken, in MHz */
  21. bool light_sleep_enable; /*!< Enter light sleep when no locks are taken */
  22. } esp_pm_config_esp32c2_t;
  23. #ifdef __cplusplus
  24. }
  25. #endif