Compare commits

...

1 Commits

3 changed files with 10 additions and 10 deletions

View File

@@ -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);

View File

@@ -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 reserved; // 0x0b
char pad2_[1]; // for stack
} tUUSB;

View File

@@ -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.reserved = 0;
uusb.vendorId = p_cfg->vendorId;
uusb.productId = p_cfg->productId;
uusb.taskId = hcisu_h2_cb.task_id;
hcisu_h2_cb.open_state = 2;