You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2020/01/28 09:43:27 UTC

[mynewt-nimble] 01/04: nimble: Add 52 version for BT 5.2

This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit a353136211179f8b917b3fbe7d3afa49354cf9c0
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Thu Jan 2 10:41:32 2020 +0100

    nimble: Add 52 version for BT 5.2
---
 nimble/include/nimble/hci_common.h | 6 ++++++
 nimble/syscfg.yml                  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/nimble/include/nimble/hci_common.h b/nimble/include/nimble/hci_common.h
index 068e85c..d138c81 100644
--- a/nimble/include/nimble/hci_common.h
+++ b/nimble/include/nimble/hci_common.h
@@ -1479,6 +1479,7 @@ struct ble_hci_ev_le_subev_periodic_adv_sync_transfer {
 #define BLE_HCI_VER_BCS_4_2                 (8)
 #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_LMP_VER_BCS_1_0b                (0)
 #define BLE_LMP_VER_BCS_1_1                 (1)
@@ -1491,6 +1492,7 @@ struct ble_hci_ev_le_subev_periodic_adv_sync_transfer {
 #define BLE_LMP_VER_BCS_4_2                 (8)
 #define BLE_LMP_VER_BCS_5_0                 (9)
 #define BLE_LMP_VER_BCS_5_1                 (10)
+#define BLE_LMP_VER_BCS_5_2                 (11)
 
 /* selected HCI and LMP version */
 #if MYNEWT_VAL(BLE_VERSION) == 50
@@ -1499,6 +1501,10 @@ struct ble_hci_ev_le_subev_periodic_adv_sync_transfer {
 #elif MYNEWT_VAL(BLE_VERSION) == 51
 #define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_1
 #define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_1
+#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
+
 #endif
 
 #define BLE_HCI_DATA_HDR_SZ                 4
diff --git a/nimble/syscfg.yml b/nimble/syscfg.yml
index c07f9bc..537fd9b 100644
--- a/nimble/syscfg.yml
+++ b/nimble/syscfg.yml
@@ -75,7 +75,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
+        range: 50, 51, 52
         value: 50
 
 # Allow periodic sync transfer only if 5.1 or higher