From a353136211179f8b917b3fbe7d3afa49354cf9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Thu, 2 Jan 2020 10:41:32 +0100 Subject: [PATCH] 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 068e85cff..d138c815f 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 c07f9bce8..537fd9ba5 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