Skip to content

Commit

Permalink
Merge branch 'bugfix/modify_configuration_for_ble_5' into 'master'
Browse files Browse the repository at this point in the history
Nimble: Update example configuration to enable ext adv feature only for BLE5.0 supported chips

See merge request espressif/esp-idf!22409
  • Loading branch information
rahult-github committed Mar 10, 2023
2 parents b43cde7 + d89736b commit 8fc0343
Show file tree
Hide file tree
Showing 21 changed files with 47 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/bt/host/nimble/Kconfig.in
Expand Up @@ -502,7 +502,7 @@ config BT_NIMBLE_MAX_CONN_REATTEMPT

menuconfig BT_NIMBLE_50_FEATURE_SUPPORT
bool "Enable BLE 5 feature"
depends on BT_NIMBLE_ENABLED
depends on BT_NIMBLE_ENABLED && (SOC_BLE_50_SUPPORTED || !BT_CONTROLLER_ENABLED)
default y
help
Enable BLE 5 feature
Expand Down
4 changes: 4 additions & 0 deletions components/soc/esp32c2/include/soc/Kconfig.soc_caps.in
Expand Up @@ -662,3 +662,7 @@ config SOC_BLE_MESH_SUPPORTED
config SOC_ESP_NIMBLE_CONTROLLER
bool
default y

config SOC_BLE_50_SUPPORTED
bool
default y
1 change: 1 addition & 0 deletions components/soc/esp32c2/include/soc/soc_caps.h
Expand Up @@ -308,3 +308,4 @@
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
#define SOC_BLE_MESH_SUPPORTED (0) /*!< Support BLE MESH */
#define SOC_ESP_NIMBLE_CONTROLLER (1) /*!< Support BLE EMBEDDED controller V1 */
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
4 changes: 4 additions & 0 deletions components/soc/esp32c3/include/soc/Kconfig.soc_caps.in
Expand Up @@ -958,3 +958,7 @@ config SOC_BLE_SUPPORTED
config SOC_BLE_MESH_SUPPORTED
bool
default y

config SOC_BLE_50_SUPPORTED
bool
default y
1 change: 1 addition & 0 deletions components/soc/esp32c3/include/soc/soc_caps.h
Expand Up @@ -417,3 +417,4 @@
/*---------------------------------- Bluetooth CAPS ----------------------------------*/
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
#define SOC_BLE_MESH_SUPPORTED (1) /*!< Support BLE MESH */
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
4 changes: 4 additions & 0 deletions components/soc/esp32c6/include/soc/Kconfig.soc_caps.in
Expand Up @@ -1186,3 +1186,7 @@ config SOC_BLE_MESH_SUPPORTED
config SOC_ESP_NIMBLE_CONTROLLER
bool
default y

config SOC_BLE_50_SUPPORTED
bool
default y
1 change: 1 addition & 0 deletions components/soc/esp32c6/include/soc/soc_caps.h
Expand Up @@ -494,3 +494,4 @@
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
#define SOC_BLE_MESH_SUPPORTED (1) /*!< Support BLE MESH */
#define SOC_ESP_NIMBLE_CONTROLLER (1) /*!< Support BLE EMBEDDED controller V1 */
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
4 changes: 4 additions & 0 deletions components/soc/esp32h2/include/soc/Kconfig.soc_caps.in
Expand Up @@ -1078,3 +1078,7 @@ config SOC_BLE_MESH_SUPPORTED
config SOC_ESP_NIMBLE_CONTROLLER
bool
default y

config SOC_BLE_50_SUPPORTED
bool
default y
1 change: 1 addition & 0 deletions components/soc/esp32h2/include/soc/soc_caps.h
Expand Up @@ -470,3 +470,4 @@
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
#define SOC_BLE_MESH_SUPPORTED (1) /*!< Support BLE MESH */
#define SOC_ESP_NIMBLE_CONTROLLER (1) /*!< Support BLE EMBEDDED controller V1 */
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
4 changes: 4 additions & 0 deletions components/soc/esp32h4/include/soc/Kconfig.soc_caps.in
Expand Up @@ -858,3 +858,7 @@ config SOC_BLE_MESH_SUPPORTED
config SOC_ESP_NIMBLE_CONTROLLER
bool
default y

config SOC_BLE_50_SUPPORTED
bool
default y
1 change: 1 addition & 0 deletions components/soc/esp32h4/include/soc/soc_caps.h
Expand Up @@ -402,3 +402,4 @@
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
#define SOC_BLE_MESH_SUPPORTED (1) /*!< Support BLE MESH */
#define SOC_ESP_NIMBLE_CONTROLLER (1) /*!< Support BLE EMBEDDED controller V1 */
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
4 changes: 4 additions & 0 deletions components/soc/esp32s3/include/soc/Kconfig.soc_caps.in
Expand Up @@ -1234,3 +1234,7 @@ config SOC_BLE_SUPPORTED
config SOC_BLE_MESH_SUPPORTED
bool
default y

config SOC_BLE_50_SUPPORTED
bool
default y
1 change: 1 addition & 0 deletions components/soc/esp32s3/include/soc/soc_caps.h
Expand Up @@ -503,3 +503,4 @@
/*---------------------------------- Bluetooth CAPS ----------------------------------*/
#define SOC_BLE_SUPPORTED (1) /*!< Support Bluetooth Low Energy hardware */
#define SOC_BLE_MESH_SUPPORTED (1) /*!< Support BLE MESH */
#define SOC_BLE_50_SUPPORTED (1) /*!< Support Bluetooth 5.0 */
Expand Up @@ -8,8 +8,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
Expand Up @@ -50,8 +50,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
Expand Up @@ -2,8 +2,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
@@ -1,8 +1,9 @@
menu "Example Configuration"
config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
Expand Up @@ -8,8 +8,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
Expand Up @@ -47,8 +47,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
3 changes: 2 additions & 1 deletion examples/bluetooth/nimble/blecent/main/Kconfig.projbuild
Expand Up @@ -8,8 +8,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down
3 changes: 2 additions & 1 deletion examples/bluetooth/nimble/bleprph/main/Kconfig.projbuild
Expand Up @@ -50,8 +50,9 @@ menu "Example Configuration"

config EXAMPLE_EXTENDED_ADV
bool
depends on SOC_BLE_50_SUPPORTED
default y if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV if SOC_ESP_NIMBLE_CONTROLLER
select BT_NIMBLE_EXT_ADV
prompt "Enable Extended Adv"
help
Use this option to enable extended advertising in the example
Expand Down

0 comments on commit 8fc0343

Please sign in to comment.