diff options
| author | hathach <[email protected]> | 2013-10-01 13:53:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-10-01 13:53:54 +0700 |
| commit | 640b0ec5467eadf153c4a09d53e0a38bae752685 (patch) | |
| tree | 1d589605ee186827ba6bd70958dd9286ca5ac535 /tests | |
| parent | 7f4a3fc8294e733a9ba52d20fa16ca6662721126 (diff) | |
- move disconnection handle to enum task --> move tusbh_xxx_unmount is invoked in non-isr context
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lpc18xx_43xx/test/host/usbh/test_usbh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lpc18xx_43xx/test/host/usbh/test_usbh.c b/tests/lpc18xx_43xx/test/host/usbh/test_usbh.c index 961d836df..3b93742c0 100644 --- a/tests/lpc18xx_43xx/test/host/usbh/test_usbh.c +++ b/tests/lpc18xx_43xx/test/host/usbh/test_usbh.c @@ -149,7 +149,7 @@ void test_usbh_device_unplugged_isr_device_not_previously_mounted(void) usbh_devices[dev_addr].hub_addr = 0; usbh_devices[dev_addr].hub_port = 0; - usbh_device_unplugged_isr(0); + usbh_hcd_rhport_unplugged_isr(0); } void test_usbh_device_unplugged_isr(void) @@ -166,7 +166,7 @@ void test_usbh_device_unplugged_isr(void) hcd_pipe_control_close_ExpectAndReturn(dev_addr, TUSB_ERROR_NONE); //------------- Code Under Test -------------// - usbh_device_unplugged_isr(0); + usbh_hcd_rhport_unplugged_isr(0); TEST_ASSERT_EQUAL(TUSB_DEVICE_STATE_REMOVING, usbh_devices[dev_addr].state); } @@ -188,7 +188,7 @@ void test_usbh_device_unplugged_multple_class(void) hcd_pipe_control_close_ExpectAndReturn(dev_addr, TUSB_ERROR_NONE); //------------- Code Under Test -------------// - usbh_device_unplugged_isr(0); + usbh_hcd_rhport_unplugged_isr(0); TEST_ASSERT_EQUAL(TUSB_DEVICE_STATE_REMOVING, usbh_devices[dev_addr].state); |
