-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ble:support esp32h2 power save example
- Loading branch information
1 parent
dcac0d0
commit 28788a9
Showing
5 changed files
with
80 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
examples/bluetooth/nimble/power_save/sdkconfig.32m.esp32h2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CONFIG_IDF_TARGET="esp32h2" | ||
|
||
# Bluetooth Low Power Config | ||
CONFIG_BT_LE_SLEEP_ENABLE=y | ||
# CONFIG_BT_LE_WAKEUP_SOURCE_CPU_RTC_TIMER is not set | ||
CONFIG_BT_LE_WAKEUP_SOURCE_BLE_RTC_TIMER=y | ||
CONFIG_BT_LE_LP_CLK_SRC_MAIN_XTAL=y | ||
# CONFIG_BT_LE_LP_CLK_SRC_DEFAULT is not set | ||
|
||
# | ||
# Power Management | ||
# | ||
CONFIG_PM_ENABLE=y | ||
CONFIG_PM_DFS_INIT_AUTO=y | ||
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y | ||
# CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP is not set | ||
# end of Power Management | ||
|
||
# | ||
# Sleep Config | ||
# | ||
CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y | ||
# end of Sleep Config |
32 changes: 32 additions & 0 deletions
32
examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32h2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
CONFIG_IDF_TARGET="esp32h2" | ||
|
||
# Bluetooth Low Power Config | ||
CONFIG_BT_LE_SLEEP_ENABLE=y | ||
# CONFIG_BT_LE_WAKEUP_SOURCE_CPU_RTC_TIMER is not set | ||
CONFIG_BT_LE_WAKEUP_SOURCE_BLE_RTC_TIMER=y | ||
# CONFIG_BT_LE_LP_CLK_SRC_MAIN_XTAL is not set | ||
CONFIG_BT_LE_LP_CLK_SRC_DEFAULT=y | ||
|
||
# | ||
# Power Management | ||
# | ||
CONFIG_PM_ENABLE=y | ||
CONFIG_PM_DFS_INIT_AUTO=y | ||
CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y | ||
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y | ||
# end of Power Management | ||
|
||
# | ||
# Sleep Config | ||
# | ||
CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y | ||
# end of Sleep Config | ||
|
||
# | ||
# RTC Clock Config | ||
# | ||
# CONFIG_RTC_CLK_SRC_INT_RC is not set | ||
CONFIG_RTC_CLK_SRC_EXT_CRYS=y | ||
# CONFIG_RTC_CLK_SRC_EXT_OSC is not set | ||
# CONFIG_RTC_CLK_SRC_INT_RC32K is not set | ||
# end of RTC Clock Config |