summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-26 13:07:42 +0700
committerhathach <[email protected]>2013-03-26 13:07:42 +0700
commit3c767e9f44ff6e430f85f7fae7c38ee8aca3b6e2 (patch)
tree2aa3fac2e208acd4614dd139eafa6f6b914453d0 /tests
parent03d045ecde8961ec7ca1579b9d207a0a83d442e3 (diff)
add field to endpoint maxpacketsize (mult)
refractor hidh_open_subtask & hidh_keyboard_open add ATTR_PACKED_STRUCT(x) - TODO remove ugly pre_pack & post pack
Diffstat (limited to 'tests')
-rw-r--r--tests/test/host/ehci/test_pipe_bulk_open.c2
-rw-r--r--tests/test/host/ehci/test_pipe_interrupt_open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test/host/ehci/test_pipe_bulk_open.c b/tests/test/host/ehci/test_pipe_bulk_open.c
index abbfc8675..0cc6c66bb 100644
--- a/tests/test/host/ehci/test_pipe_bulk_open.c
+++ b/tests/test/host/ehci/test_pipe_bulk_open.c
@@ -122,7 +122,7 @@ tusb_descriptor_endpoint_t const desc_ept_bulk_in =
void verify_bulk_open_qhd(ehci_qhd_t *p_qhd, tusb_descriptor_endpoint_t const * desc_endpoint, uint8_t class_code)
{
- verify_open_qhd(p_qhd, desc_endpoint->bEndpointAddress, desc_endpoint->wMaxPacketSize);
+ verify_open_qhd(p_qhd, desc_endpoint->bEndpointAddress, desc_endpoint->wMaxPacketSize.size);
TEST_ASSERT_FALSE(p_qhd->head_list_flag);
TEST_ASSERT_EQUAL(0, p_qhd->data_toggle_control);
diff --git a/tests/test/host/ehci/test_pipe_interrupt_open.c b/tests/test/host/ehci/test_pipe_interrupt_open.c
index ec9d48c14..502f88c85 100644
--- a/tests/test/host/ehci/test_pipe_interrupt_open.c
+++ b/tests/test/host/ehci/test_pipe_interrupt_open.c
@@ -121,7 +121,7 @@ tusb_descriptor_endpoint_t const desc_ept_interrupt_out =
};
void verify_int_qhd(ehci_qhd_t *p_qhd, tusb_descriptor_endpoint_t const * desc_endpoint, uint8_t class_code)
{
- verify_open_qhd(p_qhd, desc_endpoint->bEndpointAddress, desc_endpoint->wMaxPacketSize);
+ verify_open_qhd(p_qhd, desc_endpoint->bEndpointAddress, desc_endpoint->wMaxPacketSize.size);
TEST_ASSERT_FALSE(p_qhd->head_list_flag);
TEST_ASSERT_FALSE(p_qhd->data_toggle_control);