From d2fc569c096c861d04a4ec0186b1d6ecb13568d3 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Fri, 2 Oct 2026 14:42:45 -0500 Subject: [PATCH] cleanup(bte): name HCI/UUSB vendorId productId taskId bte_hcisu_h2_cfg is {2652, 8449} (Broadcom 0x0A5C / product 0x2101); hcisu_h2_open copies them into tUUSB along with task_id. --- libs/RVL_SDK/include/private/bte/hci.h | 4 ++-- libs/RVL_SDK/include/private/bte/uusb.h | 8 ++++---- libs/RVL_SDK/src/bte/hcisu_h2.c | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/RVL_SDK/include/private/bte/hci.h b/libs/RVL_SDK/include/private/bte/hci.h index e78c0f3a..fa1a4d55 100644 --- a/libs/RVL_SDK/include/private/bte/hci.h +++ b/libs/RVL_SDK/include/private/bte/hci.h @@ -62,8 +62,8 @@ typedef struct typedef struct { - UINT16 at_0x00; // 0x00 - UINT16 at_0x02; // 0x02 + UINT16 vendorId; // 0x00 + UINT16 productId; // 0x02 } tHCI_CFG; // size 0x04 typedef void tHCI_INIT(UINT8, UINT8, UINT16); diff --git a/libs/RVL_SDK/include/private/bte/uusb.h b/libs/RVL_SDK/include/private/bte/uusb.h index 5a270ffc..a65acc74 100644 --- a/libs/RVL_SDK/include/private/bte/uusb.h +++ b/libs/RVL_SDK/include/private/bte/uusb.h @@ -19,11 +19,11 @@ typedef void tUUSB_CBACK(UINT8, INT8); typedef struct { char pad0_[4]; - UINT16 at_0x04; - UINT16 at_0x06; - UINT16 at_0x08; + UINT16 vendorId; // 0x04 + UINT16 productId; // 0x06 + UINT16 taskId; // 0x08 char pad1_[1]; - char at_0x0b; + char pad_0x0b; // 0x0b unused char pad2_[1]; // for stack } tUUSB; diff --git a/libs/RVL_SDK/src/bte/hcisu_h2.c b/libs/RVL_SDK/src/bte/hcisu_h2.c index c3cd7f38..3a559a87 100644 --- a/libs/RVL_SDK/src/bte/hcisu_h2.c +++ b/libs/RVL_SDK/src/bte/hcisu_h2.c @@ -421,10 +421,10 @@ BOOLEAN hcisu_h2_open(tHCI_CFG *_p_cfg) tHCI_CFG *p_cfg = _p_cfg; tUUSB uusb; - uusb.at_0x0b = 0; - uusb.at_0x04 = p_cfg->at_0x00; - uusb.at_0x06 = p_cfg->at_0x02; - uusb.at_0x08 = hcisu_h2_cb.task_id; + uusb.pad_0x0b = 0; + uusb.vendorId = p_cfg->vendorId; + uusb.productId = p_cfg->productId; + uusb.taskId = hcisu_h2_cb.task_id; hcisu_h2_cb.open_state = 2; -- 2.49.1