light sleep: enable system clock in PMU HP sleep state when selecting a 40 MHz XTAL as low power clock source of ble

This commit is contained in:
Li Shuai
2023-06-26 11:26:27 +08:00
parent 21781b1ab1
commit efa4eeafd0
3 changed files with 22 additions and 2 deletions
@@ -249,6 +249,15 @@ bool pmu_sleep_finish(void);
*/
void pmu_init(void);
/**
* @brief Enable or disable system clock in PMU HP sleep state
*
* This API only used for fix BLE 40 MHz low power clock source issue
*
* @param enable true to enable, false to disable
*/
void pmu_sleep_enable_hp_sleep_sysclk(bool enable);
#endif //#if SOC_PMU_SUPPORTED