From 69c63e63b3f2ec40d8e73c385741b303fc1fa8df Mon Sep 17 00:00:00 2001 From: GengYuchao Date: Fri, 17 Jun 2022 21:52:29 +0800 Subject: [PATCH] Update examples sdkconfig defualut --- .../ble/gatt_server/sdkconfig.defaults.esp32c2 | 9 +++++++++ .../nimble/blecent/sdkconfig.defaults.esp32c2 | 8 ++++++++ .../nimble/blehr/sdkconfig.defaults.esp32c2 | 7 +++++++ examples/bluetooth/nimble/bleprph/main/main.c | 12 ++++++------ .../nimble/bleprph/sdkconfig.defaults.esp32c2 | 8 ++++++++ .../nimble/bleprph/sdkconfig.defaults.esp32h2 | 14 ++++---------- 6 files changed, 42 insertions(+), 16 deletions(-) create mode 100644 examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32c2 create mode 100644 examples/bluetooth/nimble/blecent/sdkconfig.defaults.esp32c2 create mode 100644 examples/bluetooth/nimble/blehr/sdkconfig.defaults.esp32c2 create mode 100644 examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32c2 diff --git a/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32c2 b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32c2 new file mode 100644 index 0000000000..298663d0a3 --- /dev/null +++ b/examples/bluetooth/bluedroid/ble/gatt_server/sdkconfig.defaults.esp32c2 @@ -0,0 +1,9 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration +# +CONFIG_IDF_TARGET="esp32c2" +CONFIG_BT_ENABLED=y +# CONFIG_BT_BLE_50_FEATURES_SUPPORTED is not set +CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y +# CONFIG_BT_LE_50_FEATURE_SUPPORT is not set +CONFIG_BT_LE_HCI_EVT_BUF_SIZE=257 diff --git a/examples/bluetooth/nimble/blecent/sdkconfig.defaults.esp32c2 b/examples/bluetooth/nimble/blecent/sdkconfig.defaults.esp32c2 new file mode 100644 index 0000000000..587d67f490 --- /dev/null +++ b/examples/bluetooth/nimble/blecent/sdkconfig.defaults.esp32c2 @@ -0,0 +1,8 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration +# +CONFIG_IDF_TARGET="esp32c2" +# CONFIG_EXAMPLE_EXTENDED_ADV is not set +CONFIG_BT_ENABLED=y +CONFIG_BT_NIMBLE_ENABLED=y +# CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT is not set diff --git a/examples/bluetooth/nimble/blehr/sdkconfig.defaults.esp32c2 b/examples/bluetooth/nimble/blehr/sdkconfig.defaults.esp32c2 new file mode 100644 index 0000000000..7e6512becc --- /dev/null +++ b/examples/bluetooth/nimble/blehr/sdkconfig.defaults.esp32c2 @@ -0,0 +1,7 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration +# +CONFIG_IDF_TARGET="esp32c2" +CONFIG_BT_ENABLED=y +CONFIG_BT_NIMBLE_ENABLED=y +# CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT is not set diff --git a/examples/bluetooth/nimble/bleprph/main/main.c b/examples/bluetooth/nimble/bleprph/main/main.c index 998f22da1e..61b011dc47 100644 --- a/examples/bluetooth/nimble/bleprph/main/main.c +++ b/examples/bluetooth/nimble/bleprph/main/main.c @@ -31,10 +31,10 @@ #if CONFIG_EXAMPLE_EXTENDED_ADV static uint8_t ext_adv_pattern_1[] = { - 0x02, 0x01, 0x06, - 0x03, 0x03, 0xab, 0xcd, - 0x03, 0x03, 0x18, 0x11, - 0x11, 0X09, 'e', 's', 'p', '3', '2', 'h', '2', '-', 'B', 'L', 'E', '5', '0', '-', 'S', '\0', + 0x02, 0x01, 0x06, + 0x03, 0x03, 0xab, 0xcd, + 0x03, 0x03, 0x18, 0x11, + 0x11, 0X09, 'n', 'i', 'm', 'b', 'l', 'e', '-', 'b', 'l', 'e', 'p', 'r', 'p', 'h', '-', 'e', }; #endif @@ -231,7 +231,7 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg) if (event->connect.status != 0) { /* Connection failed; resume advertising. */ #if CONFIG_EXAMPLE_EXTENDED_ADV - ext_bleprph_advertise(); + ext_bleprph_advertise(); #else bleprph_advertise(); #endif @@ -245,7 +245,7 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg) /* Connection terminated; resume advertising. */ #if CONFIG_EXAMPLE_EXTENDED_ADV - ext_bleprph_advertise(); + ext_bleprph_advertise(); #else bleprph_advertise(); #endif diff --git a/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32c2 b/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32c2 new file mode 100644 index 0000000000..ec2844d1f9 --- /dev/null +++ b/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32c2 @@ -0,0 +1,8 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration +# +CONFIG_IDF_TARGET="esp32c2" +CONFIG_BT_ENABLED=y +CONFIG_BT_NIMBLE_ENABLED=y +CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70 +CONFIG_BT_NIMBLE_EXT_ADV=y diff --git a/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32h2 b/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32h2 index 8178603ac7..808f00a80e 100644 --- a/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32h2 +++ b/examples/bluetooth/nimble/bleprph/sdkconfig.defaults.esp32h2 @@ -1,14 +1,8 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration +# CONFIG_IDF_TARGET="esp32h2" -CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y -CONFIG_ESPTOOLPY_FLASHMODE_QIO=y -CONFIG_ESPTOOLPY_FLASHFREQ_40M=y -CONFIG_ESPTOOLPY_FLASHFREQ="40m" -CONFIG_RTC_CLK_SRC_EXT_CRYS=y -CONFIG_RTC_CLK_CAL_CYCLES=576 CONFIG_BT_ENABLED=y -CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y -CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n -CONFIG_BTDM_CTRL_MODE_BTDM=n -CONFIG_BT_BLUEDROID_ENABLED=n CONFIG_BT_NIMBLE_ENABLED=y +CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70 CONFIG_BT_NIMBLE_EXT_ADV=y