diff options
| author | hathach <[email protected]> | 2013-04-07 05:09:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-07 05:09:18 +0700 |
| commit | 27f860db9ffd46bb8cb43046f9203f510a554d7c (patch) | |
| tree | bb25a7ee341c943f76b394a3bfc6fa270c57099a /tests/test/host/usbh/test_enum_task.c | |
| parent | 24ade0458e0fe3831615d7ddb1be0e3b8ed64ba6 (diff) | |
rename hidh_keyboard_info_t to hidh_interface_info_t
rename tusb_bus_event_t to tusb_event_t
add test_mouse_init and more stuff for hidh mouse
move delay after port reset to only for speed detection
prioritize port change interrupt over xfer interrupt
- in case of unplugged, current connect change & xfer error both set
- xfer error only break to debugger if not because of unplugged
fix bug: set dev addr0 state to UNPLUG after close its control pipe in enumeration process
Diffstat (limited to 'tests/test/host/usbh/test_enum_task.c')
| -rw-r--r-- | tests/test/host/usbh/test_enum_task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test/host/usbh/test_enum_task.c b/tests/test/host/usbh/test_enum_task.c index 28a6a3c9e..f942af74c 100644 --- a/tests/test/host/usbh/test_enum_task.c +++ b/tests/test/host/usbh/test_enum_task.c @@ -200,6 +200,7 @@ void test_enum_failed_get_full_dev_desc(void) usbh_enumeration_task(); + TEST_ASSERT_EQUAL(TUSB_DEVICE_STATE_UNPLUG, usbh_devices[0].state); TEST_ASSERT_EQUAL(TUSB_DEVICE_STATE_ADDRESSED, usbh_devices[1].state); TEST_ASSERT_EQUAL(TUSB_SPEED_FULL, usbh_devices[1].speed); TEST_ASSERT_EQUAL(enum_connect.core_id, usbh_devices[1].core_id); |
