From 3c767e9f44ff6e430f85f7fae7c38ee8aca3b6e2 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 26 Mar 2013 13:07:42 +0700 Subject: 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 --- tests/test/host/ehci/test_pipe_bulk_open.c | 2 +- tests/test/host/ehci/test_pipe_interrupt_open.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test/host') 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); -- cgit v1.3.1