pm.h 668 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * SPDX-FileCopyrightText: 2016-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. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /**
  13. * @brief Power management config for ESP32
  14. *
  15. * Pass a pointer to this structure as an argument to esp_pm_configure function.
  16. */
  17. typedef struct {
  18. int max_freq_mhz; /*!< Maximum CPU frequency, in MHz */
  19. int min_freq_mhz; /*!< Minimum CPU frequency to use when no locks are taken, in MHz */
  20. bool light_sleep_enable; /*!< Enter light sleep when no locks are taken */
  21. } esp_pm_config_esp32_t;
  22. #ifdef __cplusplus
  23. }
  24. #endif