summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-07 17:59:07 +0700
committerhathach <[email protected]>2013-03-07 17:59:07 +0700
commit644f0d39329e634c7a3191dd657c866458dd793b (patch)
tree150a320f2e28ad6dfa6e499a101a0734a883843e /tests
parent1b610cf26f98344af0ef4752709aced467d03e7a (diff)
make "used" member of ehci_qtd_t into reserved place of buffer[1] (with assert check in hcd init)
Diffstat (limited to 'tests')
-rw-r--r--tests/test/host/ehci/test_ehci_pipe_xfer.c3
-rw-r--r--tests/test/host/ehci/test_ehci_structure.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test/host/ehci/test_ehci_pipe_xfer.c b/tests/test/host/ehci/test_ehci_pipe_xfer.c
index 06098620d..0673a3de1 100644
--- a/tests/test/host/ehci/test_ehci_pipe_xfer.c
+++ b/tests/test/host/ehci/test_ehci_pipe_xfer.c
@@ -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);
}
-
-
diff --git a/tests/test/host/ehci/test_ehci_structure.c b/tests/test/host/ehci/test_ehci_structure.c
index d7c54e852..0dbf2ff98 100644
--- a/tests/test/host/ehci/test_ehci_structure.c
+++ b/tests/test/host/ehci/test_ehci_structure.c
@@ -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)