make "used" member of ehci_qtd_t into reserved place of buffer[1] (with assert check in hcd init)

This commit is contained in:
hathach
2013-03-07 17:59:07 +07:00
parent 1b610cf26f
commit 644f0d3932
6 changed files with 30 additions and 17 deletions
@@ -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)