Explorar el Código

Nimble: Add helper macros to set interval min / max for periodic adv

Rahul Tank hace 3 años
padre
commit
4e43694b7c

+ 1 - 1
components/bt/host/nimble/nimble

@@ -1 +1 @@
-Subproject commit df2b82880e7ff25d7ed93ce1fc89d813d00b6810
+Subproject commit 9a355b2b597a66868aed37e1ebccb0c274aaa252

+ 2 - 0
components/bt/porting/nimble/include/nimble/hci_common.h

@@ -1214,6 +1214,8 @@ struct ble_hci_vs_rd_static_addr_rp {
 #define BLE_HCI_ADV_ITVL_DEF                (0x800)         /* 1.28 seconds */
 #define BLE_HCI_ADV_CHANMASK_DEF            (0x7)           /* all channels */
 
+#define BLE_HCI_PERIODIC_ADV_ITVL           (1250)          /* usecs */
+
 /* Set scan parameters */
 #define BLE_HCI_SCAN_TYPE_PASSIVE           (0)
 #define BLE_HCI_SCAN_TYPE_ACTIVE            (1)