summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-09 14:19:40 +0700
committerhathach <[email protected]>2013-03-09 14:19:40 +0700
commit2364b09f80e097580630c556965bebd2013db7b3 (patch)
treef8267ef7905cbbb17ba911654aa5e18fcdb53249 /tests/test
parentb1db85dedf5546bee594a40ba41cf644bf7b3ae0 (diff)
add int_on_complete parameter to hcd_pipe_xfer for TD chain class request
fix control transfer request: remove get_control_request_ptr()
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/host/ehci/test_ehci_pipe_bulk_xfer.c6
-rw-r--r--tests/test/host/ehci/test_ehci_pipe_xfer.c7
2 files changed, 5 insertions, 8 deletions
diff --git a/tests/test/host/ehci/test_ehci_pipe_bulk_xfer.c b/tests/test/host/ehci/test_ehci_pipe_bulk_xfer.c
index 5ee4a04e1..4856fd8a9 100644
--- a/tests/test/host/ehci/test_ehci_pipe_bulk_xfer.c
+++ b/tests/test/host/ehci/test_ehci_pipe_bulk_xfer.c
@@ -146,7 +146,7 @@ void test_bulk_xfer(void)
{
//------------- Code Under Test -------------//
- hcd_pipe_xfer(pipe_hdl_bulk, xfer_data, sizeof(xfer_data));
+ hcd_pipe_xfer(pipe_hdl_bulk, xfer_data, sizeof(xfer_data), true);
ehci_qtd_t* p_qtd = p_qhd_bulk->p_qtd_list_head;
TEST_ASSERT_NOT_NULL(p_qtd);
@@ -162,8 +162,8 @@ void test_bulk_xfer_double(void)
{
//------------- Code Under Test -------------//
- hcd_pipe_xfer(pipe_hdl_bulk, xfer_data, sizeof(xfer_data));
- hcd_pipe_xfer(pipe_hdl_bulk, data2, sizeof(data2));
+ hcd_pipe_xfer(pipe_hdl_bulk, xfer_data, sizeof(xfer_data), false);
+ hcd_pipe_xfer(pipe_hdl_bulk, data2, sizeof(data2), true);
ehci_qtd_t* p_head = p_qhd_bulk->p_qtd_list_head;
ehci_qtd_t* p_tail = p_qhd_bulk->p_qtd_list_head;
diff --git a/tests/test/host/ehci/test_ehci_pipe_xfer.c b/tests/test/host/ehci/test_ehci_pipe_xfer.c
index 08d1d15ad..7f3d37ead 100644
--- a/tests/test/host/ehci/test_ehci_pipe_xfer.c
+++ b/tests/test/host/ehci/test_ehci_pipe_xfer.c
@@ -162,7 +162,7 @@ void test_control_addr0_xfer_get_check_qhd_qtd_mapping(void)
TEST_ASSERT_EQUAL_HEX( p_status , p_data->next.address );
TEST_ASSERT_TRUE( p_status->next.terminate );
- verify_qtd(p_setup, &usbh_device_info_pool[0].control_request, 8);
+ verify_qtd(p_setup, &request_get_dev_desc, 8);
}
@@ -181,10 +181,7 @@ void test_control_xfer_get(void)
TEST_ASSERT_TRUE( p_status->next.terminate );
//------------- SETUP -------------//
- uint8_t* p_request = (uint8_t *) &usbh_device_info_pool[dev_addr].control_request;
- verify_qtd(p_setup, p_request, 8);
-
- TEST_ASSERT_EQUAL_MEMORY(&request_get_dev_desc, p_request, sizeof(tusb_std_request_t));
+ verify_qtd(p_setup, &request_get_dev_desc, 8);
TEST_ASSERT_FALSE(p_setup->int_on_complete);
TEST_ASSERT_FALSE(p_setup->data_toggle);