1 /* 2 * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 #include <stdint.h> 9 #include <stdbool.h> 10 #include "sdkconfig.h" 11 #include "esp_err.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** 18 * @file sleep_clock.h 19 * 20 * This file contains declarations of digital peripheral clock retention related functions in light sleep mode. 21 */ 22 23 /** 24 * @brief Whether to allow the TOP power domain to be powered off. 25 * 26 * In light sleep mode, only when the system can provide enough memory 27 * for digital peripheral clock retention, the TOP power domain can be 28 * powered off. 29 * 30 * @return True to allow power off 31 */ 32 bool clock_domain_pd_allowed(void); 33 34 #ifdef __cplusplus 35 } 36 #endif 37