From 03d045ecde8961ec7ca1579b9d207a0a83d442e3 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 26 Mar 2013 12:14:04 +0700 Subject: - put ATTR_UNUSED to hardfault handler variables to discard compiler warning - change host_class_driver_t: open_subtask signature to accept tusb_descriptor_interface_t const * instead of uint8_t* --- tests/test/host/hid/test_hid_host.c | 2 +- tests/test/host/hid/test_hidh_keyboard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test') diff --git a/tests/test/host/hid/test_hid_host.c b/tests/test/host/hid/test_hid_host.c index caa73eb06..0b40d9c5b 100644 --- a/tests/test/host/hid/test_hid_host.c +++ b/tests/test/host/hid/test_hid_host.c @@ -72,7 +72,7 @@ void test_hidh_open_ok(void) hcd_pipe_open_IgnoreAndReturn( pipe_hdl ); //------------- Code Under TEST -------------// - TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, hidh_open_subtask(dev_addr, (uint8_t*) p_kbd_interface_desc, &length) ); + TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, hidh_open_subtask(dev_addr, p_kbd_interface_desc, &length) ); TEST_ASSERT_EQUAL(sizeof(tusb_descriptor_interface_t) + sizeof(tusb_hid_descriptor_hid_t) + sizeof(tusb_descriptor_endpoint_t), length); diff --git a/tests/test/host/hid/test_hidh_keyboard.c b/tests/test/host/hid/test_hidh_keyboard.c index d907bc6c2..b124ade00 100644 --- a/tests/test/host/hid/test_hidh_keyboard.c +++ b/tests/test/host/hid/test_hidh_keyboard.c @@ -118,7 +118,7 @@ void test_keyboard_open_ok(void) hcd_pipe_open_ExpectAndReturn(dev_addr, p_kdb_endpoint_desc, TUSB_CLASS_HID, pipe_hdl); //------------- Code Under TEST -------------// - TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, hidh_open_subtask(dev_addr, (uint8_t*) p_kbd_interface_desc, &length)); + TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, hidh_open_subtask(dev_addr, p_kbd_interface_desc, &length)); TEST_ASSERT_PIPE_HANDLE(pipe_hdl, p_hidh_kbd->pipe_hdl); TEST_ASSERT_EQUAL(8, p_hidh_kbd->report_size); -- cgit v1.3.1