[UTC][usb-host][Non-ACR][Fix endpoints used in transfer tests]
authorPaweł Szewczyk <p.szewczyk@samsung.com>
Mon, 1 Oct 2018 10:51:55 +0000 (12:51 +0200)
committerPaweł Szewczyk <p.szewczyk@samsung.com>
Thu, 4 Oct 2018 10:46:02 +0000 (12:46 +0200)
Wrong endpoints were used in interrupt transfer and bulk transfer tests.
The ep1 and ep2 are bulk endpoints, ep3 and ep4 are interrupt endpoints.

Change-Id: Ia6126c96dbb01882ea32da2d92b0e8341f5235c9
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
src/utc/usb-host/utc-usb-host.c

index 63e399a11b139feb5f00e5c4d301579e7348e917..1f2398dc95858e39fc7c090d1962fca6829cb33f 100755 (executable)
@@ -57,10 +57,10 @@ static usb_host_context_h ctx = NULL;
 static usb_host_device_h dev = NULL;
 static usb_host_config_h cfg = NULL;
 static usb_host_interface_h iface = NULL;
-static usb_host_endpoint_h ep1 = NULL;
-static usb_host_endpoint_h ep2 = NULL;
-static usb_host_endpoint_h ep3 = NULL;
-static usb_host_endpoint_h ep4 = NULL;
+static usb_host_endpoint_h ep1 = NULL; /**< Bulk in */
+static usb_host_endpoint_h ep2 = NULL; /**< Bulk out */
+static usb_host_endpoint_h ep3 = NULL; /**< Interrupt in */
+static usb_host_endpoint_h ep4 = NULL; /**< Interrupt out */
 static usb_host_transfer_h transfer1 = NULL;
 static usb_host_transfer_h transfer_control = NULL;
 static unsigned char transfer_buffer[sizeof(TEST_DATA)];
@@ -2130,7 +2130,7 @@ static int test_loopback_transfer(usb_host_endpoint_h in, usb_host_endpoint_h ou
  */
 int utc_usb_host_interrupt_transfer_p(void)
 {
-       return test_loopback_transfer(ep1, ep2);
+       return test_loopback_transfer(ep3, ep4);
 }
 
 /**
@@ -2142,7 +2142,7 @@ int utc_usb_host_interrupt_transfer_p(void)
  */
 int utc_usb_host_transfer_p(void)
 {
-       return test_loopback_transfer(ep3, ep4);
+       return test_loopback_transfer(ep1, ep2);
 }
 
 /**