From 9e6e1b791223ad187f86fe42e508cad2bc80aa81 Mon Sep 17 00:00:00 2001 From: xiewenxiang Date: Mon, 22 Jul 2024 11:29:50 +0800 Subject: [PATCH] feat(ESPAT-2010): Added the ble light sleep support on esp32c2 --- module_config/module_esp32c2-2mb/sdkconfig.defaults | 4 ++++ module_config/module_esp32c2-2mb/sdkconfig_silence.defaults | 4 ++++ module_config/module_esp32c2-ble-2mb/sdkconfig.defaults | 4 ++++ .../module_esp32c2-ble-2mb/sdkconfig_silence.defaults | 4 ++++ module_config/module_esp32c2_default/sdkconfig.defaults | 4 ++++ .../module_esp32c2_default/sdkconfig_silence.defaults | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/module_config/module_esp32c2-2mb/sdkconfig.defaults b/module_config/module_esp32c2-2mb/sdkconfig.defaults index 27419c44..b2690753 100644 --- a/module_config/module_esp32c2-2mb/sdkconfig.defaults +++ b/module_config/module_esp32c2-2mb/sdkconfig.defaults @@ -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 @@ -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 diff --git a/module_config/module_esp32c2-2mb/sdkconfig_silence.defaults b/module_config/module_esp32c2-2mb/sdkconfig_silence.defaults index 5129dda5..25a63df7 100644 --- a/module_config/module_esp32c2-2mb/sdkconfig_silence.defaults +++ b/module_config/module_esp32c2-2mb/sdkconfig_silence.defaults @@ -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 @@ -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 diff --git a/module_config/module_esp32c2-ble-2mb/sdkconfig.defaults b/module_config/module_esp32c2-ble-2mb/sdkconfig.defaults index e59fd210..2f5f5c52 100644 --- a/module_config/module_esp32c2-ble-2mb/sdkconfig.defaults +++ b/module_config/module_esp32c2-ble-2mb/sdkconfig.defaults @@ -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 @@ -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 diff --git a/module_config/module_esp32c2-ble-2mb/sdkconfig_silence.defaults b/module_config/module_esp32c2-ble-2mb/sdkconfig_silence.defaults index e41e3a37..ce441895 100644 --- a/module_config/module_esp32c2-ble-2mb/sdkconfig_silence.defaults +++ b/module_config/module_esp32c2-ble-2mb/sdkconfig_silence.defaults @@ -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 @@ -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 diff --git a/module_config/module_esp32c2_default/sdkconfig.defaults b/module_config/module_esp32c2_default/sdkconfig.defaults index 3128446d..739b0f96 100644 --- a/module_config/module_esp32c2_default/sdkconfig.defaults +++ b/module_config/module_esp32c2_default/sdkconfig.defaults @@ -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 @@ -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 diff --git a/module_config/module_esp32c2_default/sdkconfig_silence.defaults b/module_config/module_esp32c2_default/sdkconfig_silence.defaults index a765c6f0..ffe0231d 100644 --- a/module_config/module_esp32c2_default/sdkconfig_silence.defaults +++ b/module_config/module_esp32c2_default/sdkconfig_silence.defaults @@ -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 @@ -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