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 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /** 17 * @file sleep_sys_periph.h 18 * 19 * This file contains declarations of digital peripheral retention related functions in light sleep mode. 20 */ 21 22 /** 23 * @brief Whether to allow the TOP power domain to be powered off. 24 * 25 * In light sleep mode, only when the system can provide enough memory 26 * for digital peripheral retention, the TOP power domain can be powered off. 27 * 28 * @return True to allow power off 29 */ 30 bool peripheral_domain_pd_allowed(void); 31 32 #ifdef __cplusplus 33 } 34 #endif 35