This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new ee6ba61 nimble: Allow to configure BLE version 5.3
ee6ba61 is described below
commit ee6ba614c81cb83f4f6ae3b559e142344e8ec0ef
Author: Szymon Janc <[email protected]>
AuthorDate: Tue Dec 14 15:18:33 2021 +0100
nimble: Allow to configure BLE version 5.3
Core Specification 5.3 is available for some time already.
---
nimble/include/nimble/hci_common.h | 6 +++++-
nimble/syscfg.yml | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/nimble/include/nimble/hci_common.h
b/nimble/include/nimble/hci_common.h
index b6f9869..7369518 100644
--- a/nimble/include/nimble/hci_common.h
+++ b/nimble/include/nimble/hci_common.h
@@ -1828,6 +1828,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
#define BLE_HCI_VER_BCS_5_0 (9)
#define BLE_HCI_VER_BCS_5_1 (10)
#define BLE_HCI_VER_BCS_5_2 (11)
+#define BLE_HCI_VER_BCS_5_3 (12)
#define BLE_LMP_VER_BCS_1_0b (0)
#define BLE_LMP_VER_BCS_1_1 (1)
@@ -1841,6 +1842,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
#define BLE_LMP_VER_BCS_5_0 (9)
#define BLE_LMP_VER_BCS_5_1 (10)
#define BLE_LMP_VER_BCS_5_2 (11)
+#define BLE_LMP_VER_BCS_5_3 (12)
/* selected HCI and LMP version */
#if MYNEWT_VAL(BLE_VERSION) == 50
@@ -1852,7 +1854,9 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
#elif MYNEWT_VAL(BLE_VERSION) == 52
#define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_2
#define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_2
-
+#elif MYNEWT_VAL(BLE_VERSION) == 53
+#define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_3
+#define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_3
#endif
#define BLE_HCI_DATA_HDR_SZ 4
diff --git a/nimble/syscfg.yml b/nimble/syscfg.yml
index 32fbaf9..0e87c06 100644
--- a/nimble/syscfg.yml
+++ b/nimble/syscfg.yml
@@ -80,7 +80,7 @@ syscfg.defs:
This allows to configure supported Bluetooth Core version. Some
features may not be available if version is too low. Version is
integer for easy comparison.
- range: 50, 51, 52
+ range: 50, 51, 52, 53
value: 50
BLE_ISO:
description: >