diff options
| author | hathach <[email protected]> | 2013-02-27 18:49:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-02-27 18:49:28 +0700 |
| commit | 0c397c6b8d96f9d82101afb3a3bc812981bac194 (patch) | |
| tree | 2c6a6872b6444f9203dd88481cb2785447d16074 /tests/test/host | |
| parent | d54a12c4499be4b16c842e5d3cb0bbf4a04b96bc (diff) | |
house keeping
- correct initialization call sequence
- move hcd_init to ehci.c
Diffstat (limited to 'tests/test/host')
| -rw-r--r-- | tests/test/host/ehci/test_ehci.c | 5 | ||||
| -rw-r--r-- | tests/test/host/test_hid_host_keyboard.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/test/host/ehci/test_ehci.c b/tests/test/host/ehci/test_ehci.c index e3a82ecb9..83f81787e 100644 --- a/tests/test/host/ehci/test_ehci.c +++ b/tests/test/host/ehci/test_ehci.c @@ -277,6 +277,11 @@ void test_register_portsc(void) } //--------------------------------------------------------------------+ +// EHCI Data Organiztion +//--------------------------------------------------------------------+ + + +//--------------------------------------------------------------------+ // Helper //--------------------------------------------------------------------+ int8_t first_pos_of_high_bit(uint32_t value) diff --git a/tests/test/host/test_hid_host_keyboard.c b/tests/test/host/test_hid_host_keyboard.c index 888c216e6..109bdbd03 100644 --- a/tests/test/host/test_hid_host_keyboard.c +++ b/tests/test/host/test_hid_host_keyboard.c @@ -103,7 +103,7 @@ void test_keyboard_install_ok(void) tusbh_device_status_get_IgnoreAndReturn(TUSB_DEVICE_STATUS_READY); TEST_ASSERT_EQUAL(0, tusbh_hid_keyboard_no_instances(device_hdl)); - TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, class_hid_keyboard_install(device_hdl, (uint8_t*) &kbd_descriptor)); + TEST_ASSERT_EQUAL(TUSB_ERROR_NONE, hidh_keyboard_install(device_hdl, (uint8_t*) &kbd_descriptor)); tusbh_device_status_get_IgnoreAndReturn(TUSB_DEVICE_STATUS_READY); TEST_ASSERT_EQUAL(1, tusbh_hid_keyboard_no_instances(device_hdl)); } @@ -113,7 +113,7 @@ void test_keyboard_init(void) class_hid_keyboard_info_t keyboard_info_zero[TUSB_CFG_HOST_DEVICE_MAX]; memset(keyboard_info_zero, 0, sizeof(class_hid_keyboard_info_t)*TUSB_CFG_HOST_DEVICE_MAX); - class_hid_keyboard_init(); + hidh_keyboard_init(); TEST_ASSERT_EQUAL_MEMORY(keyboard_info_zero, keyboard_info_pool, sizeof(class_hid_keyboard_info_t)*TUSB_CFG_HOST_DEVICE_MAX); } |
