|
|
@@ -179,7 +179,7 @@ void test_addr0_failed_dev_desc(void)
|
|
|
void test_addr0_failed_set_address(void)
|
|
|
{
|
|
|
osal_semaphore_wait_StubWithCallback(semaphore_wait_timeout_stub(1));
|
|
|
-// hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
+ hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
tusbh_device_mount_failed_cb_Expect(TUSB_ERROR_USBH_MOUNT_DEVICE_NOT_RESPOND, NULL);
|
|
|
|
|
|
usbh_enumeration_task();
|
|
|
@@ -191,7 +191,7 @@ void test_addr0_failed_set_address(void)
|
|
|
void test_enum_failed_get_full_dev_desc(void)
|
|
|
{
|
|
|
osal_semaphore_wait_StubWithCallback(semaphore_wait_timeout_stub(2));
|
|
|
-// hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
+ hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
hcd_pipe_control_close_ExpectAndReturn(0, TUSB_ERROR_NONE);
|
|
|
|
|
|
osal_semaphore_reset_Expect( usbh_devices[0].control.sem_hdl );
|
|
|
@@ -211,7 +211,7 @@ void test_enum_failed_get_full_dev_desc(void)
|
|
|
void test_enum_failed_get_9byte_config_desc(void)
|
|
|
{
|
|
|
osal_semaphore_wait_StubWithCallback(semaphore_wait_timeout_stub(3));
|
|
|
-// hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
+ hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
hcd_pipe_control_close_ExpectAndReturn(0, TUSB_ERROR_NONE);
|
|
|
osal_semaphore_reset_Expect( usbh_devices[0].control.sem_hdl );
|
|
|
hcd_pipe_control_open_ExpectAndReturn(1, desc_device.bMaxPacketSize0, TUSB_ERROR_NONE);
|
|
|
@@ -228,7 +228,7 @@ void test_enum_failed_get_9byte_config_desc(void)
|
|
|
void test_enum_failed_get_full_config_desc(void)
|
|
|
{
|
|
|
osal_semaphore_wait_StubWithCallback(semaphore_wait_timeout_stub(4));
|
|
|
-// hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
+ hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
hcd_pipe_control_close_ExpectAndReturn(0, TUSB_ERROR_NONE);
|
|
|
osal_semaphore_reset_Expect( usbh_devices[0].control.sem_hdl );
|
|
|
hcd_pipe_control_open_ExpectAndReturn(1, desc_device.bMaxPacketSize0, TUSB_ERROR_NONE);
|
|
|
@@ -246,7 +246,7 @@ void class_install_expect(void)
|
|
|
void test_enum_parse_config_desc(void)
|
|
|
{
|
|
|
osal_semaphore_wait_StubWithCallback(semaphore_wait_timeout_stub(5));
|
|
|
-// hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
+ hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
hcd_pipe_control_close_ExpectAndReturn(0, TUSB_ERROR_NONE);
|
|
|
osal_semaphore_reset_Expect( usbh_devices[0].control.sem_hdl );
|
|
|
hcd_pipe_control_open_ExpectAndReturn(1, desc_device.bMaxPacketSize0, TUSB_ERROR_NONE);
|
|
|
@@ -262,7 +262,7 @@ void test_enum_parse_config_desc(void)
|
|
|
void test_enum_set_configure(void)
|
|
|
{
|
|
|
osal_semaphore_wait_StubWithCallback(semaphore_wait_timeout_stub(6));
|
|
|
-// hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
+ hcd_port_reset_Expect( usbh_devices[0].core_id );
|
|
|
hcd_pipe_control_close_ExpectAndReturn(0, TUSB_ERROR_NONE);
|
|
|
osal_semaphore_reset_Expect( usbh_devices[0].control.sem_hdl );
|
|
|
hcd_pipe_control_open_ExpectAndReturn(1, desc_device.bMaxPacketSize0, TUSB_ERROR_NONE);
|