Skip to content

Commit

Permalink
feat(ESPAT-2010): Added the ble light sleep support on esp32c2
Browse files Browse the repository at this point in the history
  • Loading branch information
xiewenxiang authored and ustccw committed Dec 5, 2024
1 parent 3a8b096 commit 9e6e1b7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module_config/module_esp32c2-2mb/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ CONFIG_PM_ENABLE=y
CONFIG_PM_USE_RTC_TIMER_REF=y
### Disable all GPIO at light sleep
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_DFS_INIT_AUTO=y

# ESP Ringbuf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
Expand All @@ -54,6 +55,9 @@ CONFIG_LOG_COLORS=n
# Compiler
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y

# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y

# Bluetooth
CONFIG_BT_ENABLED=n
CONFIG_BTDM_CTRL_MODE_ONLY=y
Expand Down
4 changes: 4 additions & 0 deletions module_config/module_esp32c2-2mb/sdkconfig_silence.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ CONFIG_PM_ENABLE=y
CONFIG_PM_USE_RTC_TIMER_REF=y
### Disable all GPIO at light sleep
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_DFS_INIT_AUTO=y

# ESP Ringbuf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
Expand Down Expand Up @@ -57,6 +58,9 @@ CONFIG_LOG_COLORS=n
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y

# Bluetooth
CONFIG_BT_ENABLED=n
CONFIG_BTDM_CTRL_MODE_ONLY=y
Expand Down
4 changes: 4 additions & 0 deletions module_config/module_esp32c2-ble-2mb/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONFIG_PM_ENABLE=y
CONFIG_PM_USE_RTC_TIMER_REF=y
### Disable all GPIO at light sleep
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_DFS_INIT_AUTO=y

# ESP Ringbuf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
Expand All @@ -51,6 +52,9 @@ CONFIG_LOG_DEFAULT_LEVEL_ERROR=y
# Compiler
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y

# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y

# NimBLE Options
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONFIG_PM_ENABLE=y
CONFIG_PM_USE_RTC_TIMER_REF=y
### Disable all GPIO at light sleep
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_DFS_INIT_AUTO=y

# ESP Ringbuf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
Expand Down Expand Up @@ -55,6 +56,9 @@ CONFIG_FREERTOS_ASSERT_DISABLE=y
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y

# NimBLE Options
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
Expand Down
4 changes: 4 additions & 0 deletions module_config/module_esp32c2_default/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONFIG_PM_ENABLE=y
CONFIG_PM_USE_RTC_TIMER_REF=y
### Disable all GPIO at light sleep
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_DFS_INIT_AUTO=y

# ESP Ringbuf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
Expand All @@ -51,6 +52,9 @@ CONFIG_LOG_DEFAULT_LEVEL_ERROR=y
# Compiler
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y

# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y

# NimBLE Options
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONFIG_PM_ENABLE=y
CONFIG_PM_USE_RTC_TIMER_REF=y
### Disable all GPIO at light sleep
CONFIG_PM_SLP_DISABLE_GPIO=y
CONFIG_PM_DFS_INIT_AUTO=y

# ESP Ringbuf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
Expand Down Expand Up @@ -55,6 +56,9 @@ CONFIG_FREERTOS_ASSERT_DISABLE=y
CONFIG_COMPILER_OPTIMIZATION_DEFAULT=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

# Bluetooth Low Power Config
CONFIG_BT_LE_SLEEP_ENABLE=y

# NimBLE Options
CONFIG_BT_ENABLED=y
CONFIG_BT_NIMBLE_ENABLED=y
Expand Down

0 comments on commit 9e6e1b7

Please sign in to comment.