| 
									
										
										
										
											2022-01-05 16:17:12 +08:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: Apache-2.0 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2017-09-22 23:30:13 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | #include <stdint.h>
 | 
					
						
							|  |  |  | #include <stdbool.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							|  |  |  |  * @brief Power management config for ESP32 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Pass a pointer to this structure as an argument to esp_pm_configure function. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | typedef struct { | 
					
						
							| 
									
										
										
										
											2018-07-29 10:50:49 +03:00
										 |  |  |     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 */ | 
					
						
							| 
									
										
										
										
											2017-09-22 23:30:13 +08:00
										 |  |  |     bool light_sleep_enable;        /*!< Enter light sleep when no locks are taken */ | 
					
						
							|  |  |  | } esp_pm_config_esp32_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 |