Skip to content

Commit a302fea

Browse files
committed
Enable controller VS commands to allow static device address and dynamic tx power setting.
1 parent 5113971 commit a302fea

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/nimble/nimble/controller/src/ble_ll_hci_vs.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
#if MYNEWT_VAL(BLE_LL_HCI_VS)
3434

35+
#ifndef ARRAY_SIZE
36+
#define ARRAY_SIZE(array) \
37+
(sizeof(array) / sizeof((array)[0]))
38+
#endif
39+
3540
SLIST_HEAD(ble_ll_hci_vs_list, ble_ll_hci_vs_cmd);
3641
static struct ble_ll_hci_vs_list g_ble_ll_hci_vs_list;
3742

src/nimble/porting/nimble/include/syscfg/syscfg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@
106106
#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (10)
107107
#endif
108108

109+
#ifndef MYNEWT_VAL_BLE_LL_HCI_VS
110+
#define MYNEWT_VAL_BLE_LL_HCI_VS (1)
109111
#endif
110112

113+
#endif /* !ESP_PLATFORM */
114+
111115
#if 0
112116

113117
/**

0 commit comments

Comments
 (0)