make "used" member of ehci_qtd_t into reserved place of buffer[1] (with assert check in hcd init)
This commit is contained in:
@@ -98,6 +98,7 @@ void setUp(void)
|
||||
usbh_device_info_pool[i].core_id = hostid;
|
||||
usbh_device_info_pool[i].hub_addr = hub_addr;
|
||||
usbh_device_info_pool[i].hub_port = hub_port;
|
||||
usbh_device_info_pool[i].speed = TUSB_SPEED_HIGH;
|
||||
}
|
||||
|
||||
async_head = get_async_head( hostid );
|
||||
@@ -228,5 +229,3 @@ void test_control_xfer_set(void)
|
||||
TEST_ASSERT_TRUE(p_status->data_toggle);
|
||||
TEST_ASSERT_EQUAL(EHCI_PID_IN, p_status->pid);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -134,6 +134,7 @@ void test_qtd_structure(void)
|
||||
TEST_ASSERT_EQUAL( 31, BITFIELD_OFFSET_OF_UINT32(ehci_qtd_t, 2, data_toggle) );
|
||||
|
||||
TEST_ASSERT_EQUAL( 12, offsetof(ehci_qtd_t, buffer));
|
||||
TEST_ASSERT_EQUAL( 16, offsetof(ehci_qtd_t, used));
|
||||
}
|
||||
|
||||
void test_qhd_structure(void)
|
||||
|
||||
Reference in New Issue
Block a user