Skip to content

Commit ee6ba61

Browse files
committed
nimble: Allow to configure BLE version 5.3
Core Specification 5.3 is available for some time already.
1 parent f4dd2f3 commit ee6ba61

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

nimble/include/nimble/hci_common.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
18281828
#define BLE_HCI_VER_BCS_5_0 (9)
18291829
#define BLE_HCI_VER_BCS_5_1 (10)
18301830
#define BLE_HCI_VER_BCS_5_2 (11)
1831+
#define BLE_HCI_VER_BCS_5_3 (12)
18311832

18321833
#define BLE_LMP_VER_BCS_1_0b (0)
18331834
#define BLE_LMP_VER_BCS_1_1 (1)
@@ -1841,6 +1842,7 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
18411842
#define BLE_LMP_VER_BCS_5_0 (9)
18421843
#define BLE_LMP_VER_BCS_5_1 (10)
18431844
#define BLE_LMP_VER_BCS_5_2 (11)
1845+
#define BLE_LMP_VER_BCS_5_3 (12)
18441846

18451847
/* selected HCI and LMP version */
18461848
#if MYNEWT_VAL(BLE_VERSION) == 50
@@ -1852,7 +1854,9 @@ struct ble_hci_ev_le_subev_biginfo_adv_report {
18521854
#elif MYNEWT_VAL(BLE_VERSION) == 52
18531855
#define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_2
18541856
#define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_2
1855-
1857+
#elif MYNEWT_VAL(BLE_VERSION) == 53
1858+
#define BLE_HCI_VER_BCS BLE_HCI_VER_BCS_5_3
1859+
#define BLE_LMP_VER_BCS BLE_LMP_VER_BCS_5_3
18561860
#endif
18571861

18581862
#define BLE_HCI_DATA_HDR_SZ 4

nimble/syscfg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ syscfg.defs:
8080
This allows to configure supported Bluetooth Core version. Some
8181
features may not be available if version is too low. Version is
8282
integer for easy comparison.
83-
range: 50, 51, 52
83+
range: 50, 51, 52, 53
8484
value: 50
8585
BLE_ISO:
8686
description: >

0 commit comments

Comments
 (0)