From 5100917b5a885dee04fe5dadda6d9905d22b74ac Mon Sep 17 00:00:00 2001 From: luoxu Date: Wed, 31 Jul 2024 17:56:28 +0800 Subject: [PATCH] feat(ble_mesh): Support BLE Mesh Example for esp32c5 --- .../aligenie_demo/sdkconfig.defaults.esp32c5 | 17 +++++++++++++++++ .../df_client/main/Kconfig.projbuild | 4 ++++ .../directed_forwarding/df_client/main/board.h | 2 ++ .../df_client/sdkconfig.defaults.esp32c5 | 7 +++++++ .../df_server/main/Kconfig.projbuild | 4 ++++ .../directed_forwarding/df_server/main/board.h | 2 ++ .../df_server/sdkconfig.defaults.esp32c5 | 7 +++++++ .../fast_prov_client/sdkconfig.defaults.esp32c5 | 7 +++++++ .../fast_prov_server/main/Kconfig.projbuild | 4 ++++ .../fast_prov_server/main/board.h | 4 ++++ .../fast_prov_server/sdkconfig.defaults.esp32c5 | 7 +++++++ .../onoff_client/main/Kconfig.projbuild | 4 ++++ .../onoff_models/onoff_client/main/board.h | 4 ++++ .../onoff_client/sdkconfig.defaults.esp32c5 | 7 +++++++ .../onoff_server/main/Kconfig.projbuild | 4 ++++ .../onoff_models/onoff_server/main/board.h | 4 ++++ .../onoff_server/sdkconfig.defaults.esp32c5 | 7 +++++++ .../provisioner/sdkconfig.defaults.esp32c5 | 7 +++++++ .../rpr_client/main/Kconfig.projbuild | 4 ++++ .../remote_provisioning/rpr_client/main/board.h | 2 ++ .../rpr_client/sdkconfig.defaults.esp32c5 | 7 +++++++ .../rpr_server/main/Kconfig.projbuild | 4 ++++ .../remote_provisioning/rpr_server/main/board.h | 2 ++ .../rpr_server/sdkconfig.defaults.esp32c5 | 7 +++++++ .../unprov_dev/main/Kconfig.projbuild | 4 ++++ .../remote_provisioning/unprov_dev/main/board.h | 2 ++ .../unprov_dev/sdkconfig.defaults.esp32c5 | 7 +++++++ .../sensor_client/sdkconfig.defaults.esp32c5 | 7 +++++++ .../sensor_server/main/Kconfig.projbuild | 4 ++++ .../sensor_models/sensor_server/main/board.h | 4 ++++ .../sensor_server/sdkconfig.defaults.esp32c5 | 7 +++++++ .../vendor_client/sdkconfig.defaults.esp32c5 | 7 +++++++ .../vendor_server/main/Kconfig.projbuild | 4 ++++ .../vendor_models/vendor_server/main/board.h | 4 ++++ .../vendor_server/sdkconfig.defaults.esp32c5 | 7 +++++++ .../wifi_coexist/main/Kconfig.projbuild | 4 ++++ .../esp_ble_mesh/wifi_coexist/main/board.h | 4 ++++ .../wifi_coexist/sdkconfig.defaults.esp32c5 | 7 +++++++ 38 files changed, 200 insertions(+) create mode 100644 examples/bluetooth/esp_ble_mesh/aligenie_demo/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_client/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/provisioner/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/sensor_models/sensor_client/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/vendor_models/vendor_client/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/sdkconfig.defaults.esp32c5 create mode 100644 examples/bluetooth/esp_ble_mesh/wifi_coexist/sdkconfig.defaults.esp32c5 diff --git a/examples/bluetooth/esp_ble_mesh/aligenie_demo/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/aligenie_demo/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..9be01360da --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/aligenie_demo/sdkconfig.defaults.esp32c5 @@ -0,0 +1,17 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n + +# +# light driver config +# +CONFIG_LIGHT_GPIO_RED=4 +CONFIG_LIGHT_GPIO_GREEN=5 +CONFIG_LIGHT_GPIO_BLUE=6 +CONFIG_LIGHT_GPIO_COLD=7 +CONFIG_LIGHT_GPIO_WARM=10 +# end of light driver config diff --git a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/board.h b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/board.h index fd7ec8d37a..28890cdf2b 100644 --- a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/main/board.h @@ -39,6 +39,8 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #endif #define LED_ON 1 diff --git a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_client/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/board.h b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/board.h index 5de45602d4..18d88b2a63 100644 --- a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/main/board.h @@ -38,6 +38,8 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #endif #define LED_ON 1 diff --git a/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/directed_forwarding/df_server/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_client/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_client/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_client/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/board.h b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/board.h index 820e2dcb1b..7bb44d1d9c 100644 --- a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/main/board.h @@ -40,6 +40,10 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define LED_R GPIO_NUM_8 +#define LED_G GPIO_NUM_8 +#define LED_B GPIO_NUM_8 #endif struct _led_state { diff --git a/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/fast_provisioning/fast_prov_server/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/board.h b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/board.h index 71af077eec..6d7eb19bf3 100644 --- a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/main/board.h @@ -41,6 +41,10 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define LED_R GPIO_NUM_8 +#define LED_G GPIO_NUM_8 +#define LED_B GPIO_NUM_8 #endif #define LED_ON 1 diff --git a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/board.h b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/board.h index 5c5a511cd6..918904c4d1 100644 --- a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/main/board.h @@ -40,6 +40,10 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define LED_R GPIO_NUM_8 +#define LED_G GPIO_NUM_8 +#define LED_B GPIO_NUM_8 #endif #define LED_ON 1 diff --git a/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/provisioner/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/provisioner/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/provisioner/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/board.h b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/board.h index 51dfd15c2c..e5466c5dca 100644 --- a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/main/board.h @@ -32,6 +32,8 @@ extern "C" { #define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #elif defined(CONFIG_BLE_MESH_ESP32H2_DEV) #define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #endif #define BUTTON_IO_NUM GPIO_NUM_9 diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_client/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/board.h b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/board.h index 51dfd15c2c..e5466c5dca 100644 --- a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/main/board.h @@ -32,6 +32,8 @@ extern "C" { #define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #elif defined(CONFIG_BLE_MESH_ESP32H2_DEV) #define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #endif #define BUTTON_IO_NUM GPIO_NUM_9 diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/rpr_server/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/board.h b/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/board.h index 51dfd15c2c..e5466c5dca 100644 --- a/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/main/board.h @@ -32,6 +32,8 @@ extern "C" { #define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #elif defined(CONFIG_BLE_MESH_ESP32H2_DEV) #define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define BLE_MESH_LED_STRIP_IO GPIO_NUM_8 #endif #define BUTTON_IO_NUM GPIO_NUM_9 diff --git a/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/remote_provisioning/unprov_dev/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_client/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_client/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_client/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/board.h b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/board.h index 5c5a511cd6..918904c4d1 100644 --- a/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/main/board.h @@ -40,6 +40,10 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define LED_R GPIO_NUM_8 +#define LED_G GPIO_NUM_8 +#define LED_B GPIO_NUM_8 #endif #define LED_ON 1 diff --git a/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/sensor_models/sensor_server/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_client/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_client/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_client/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/Kconfig.projbuild index 15957eda3a..cb2988a8c8 100644 --- a/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/Kconfig.projbuild @@ -34,6 +34,10 @@ menu "Example Configuration" bool "ESP32H2-DevKitC" depends on IDF_TARGET_ESP32H2 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/board.h b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/board.h index 5c5a511cd6..918904c4d1 100644 --- a/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/main/board.h @@ -40,6 +40,10 @@ extern "C" { #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define LED_R GPIO_NUM_8 +#define LED_G GPIO_NUM_8 +#define LED_B GPIO_NUM_8 #endif #define LED_ON 1 diff --git a/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/vendor_models/vendor_server/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n diff --git a/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/Kconfig.projbuild b/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/Kconfig.projbuild index 9569e08771..9344866edb 100644 --- a/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/Kconfig.projbuild +++ b/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/Kconfig.projbuild @@ -29,6 +29,10 @@ menu "Example Configuration" bool "ESP32C6-DevKitC" depends on IDF_TARGET_ESP32C6 + config BLE_MESH_ESP32C5_DEV + bool "ESP32C5-DevKitC" + depends on IDF_TARGET_ESP32C5 + endchoice endmenu diff --git a/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/board.h b/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/board.h index f7d3ac516a..1bbda4d6be 100644 --- a/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/board.h +++ b/examples/bluetooth/esp_ble_mesh/wifi_coexist/main/board.h @@ -32,6 +32,10 @@ #define LED_R GPIO_NUM_8 #define LED_G GPIO_NUM_8 #define LED_B GPIO_NUM_8 +#elif defined(CONFIG_BLE_MESH_ESP32C5_DEV) +#define LED_R GPIO_NUM_8 +#define LED_G GPIO_NUM_8 +#define LED_B GPIO_NUM_8 #endif struct _led_state { diff --git a/examples/bluetooth/esp_ble_mesh/wifi_coexist/sdkconfig.defaults.esp32c5 b/examples/bluetooth/esp_ble_mesh/wifi_coexist/sdkconfig.defaults.esp32c5 new file mode 100644 index 0000000000..50f069794a --- /dev/null +++ b/examples/bluetooth/esp_ble_mesh/wifi_coexist/sdkconfig.defaults.esp32c5 @@ -0,0 +1,7 @@ +# Override some defaults so BT stack is enabled +# by default in this example +CONFIG_IDF_TARGET="esp32c5" +CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +CONFIG_BT_BLE_50_FEATURES_SUPPORTED=n +CONFIG_BT_LE_50_FEATURE_SUPPORT=n