change signature usbh_isr to add tusb_bus_event_t parameter

change singature of call_isr as well
This commit is contained in:
hathach
2013-03-23 15:00:56 +07:00
parent e6b8166a58
commit 4adfc6a6d8
10 changed files with 17 additions and 17 deletions

View File

@@ -202,7 +202,7 @@ void test_bulk_xfer_double(void)
TEST_ASSERT_TRUE(p_tail->int_on_complete);
}
void test_bulk_xfer_isr(void)
void test_bulk_xfer_complete_isr(void)
{
hcd_pipe_xfer(pipe_hdl_bulk, xfer_data, sizeof(xfer_data), false);
hcd_pipe_xfer(pipe_hdl_bulk, data2, sizeof(data2), true);
@@ -212,7 +212,7 @@ void test_bulk_xfer_isr(void)
ehci_controller_run(hostid);
usbh_isr_Expect(pipe_hdl_bulk, TUSB_CLASS_MSC);
usbh_isr_Expect(pipe_hdl_bulk, TUSB_CLASS_MSC, BUS_EVENT_XFER_COMPLETE);
//------------- Code Under Test -------------//
hcd_isr(hostid);

View File

@@ -235,7 +235,7 @@ void test_control_xfer_complete_isr(void)
TEST_ASSERT_EQUAL_HEX(async_head, get_operational_register(hostid)->async_list_base);
TEST_ASSERT_EQUAL_HEX((uint32_t) p_control_qhd, align32(async_head->next.address));
usbh_isr_Expect(((pipe_handle_t){.dev_addr = dev_addr}), 0);
usbh_isr_Expect(((pipe_handle_t){.dev_addr = dev_addr}), 0, BUS_EVENT_XFER_COMPLETE);
//------------- Code Under TEST -------------//
hcd_isr(hostid);