feat(ble): support ble light sleep on esp32c5

This commit is contained in:
cjin
2024-09-04 11:34:06 +08:00
parent 98cf50d140
commit 50d410e1c8
11 changed files with 104 additions and 63 deletions

View File

@@ -0,0 +1,22 @@
CONFIG_IDF_TARGET="esp32c5"
# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y
CONFIG_BT_LE_LP_CLK_SRC_MAIN_XTAL=y
#
# Power Management
#
CONFIG_PM_ENABLE=y
CONFIG_PM_DFS_INIT_AUTO=y
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y
# end of Power Management
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
#
# Sleep Config
#
CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y
CONFIG_ESP_SLEEP_CACHE_SAFE_ASSERTION=y
# end of Sleep Config