diff options
| author | hathach <[email protected]> | 2013-03-13 00:02:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-13 00:02:45 +0700 |
| commit | 79e277d323a4c20070dbd9d34d058ea3b6b55e7d (patch) | |
| tree | 85bfcc2247a5558b939d6efc0b9ba54fd50d569b /tests | |
| parent | d2bd80109ef5fb46ca46fae168f5d3a5096794bc (diff) | |
go through all the enumeration (up to get full configuration)
- fix init_qhd for address 0 (clear queue head --> ehci controller halted)
- fix bug in usbh_init missing address0 for semaphore create
TUSB_CFG_DEBUG == 3: --> ATTR_ALWAYS_INLINE is null --> allow gcc to export "normal inline" function
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test/host/test_usbh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test/host/test_usbh.c b/tests/test/host/test_usbh.c index 315fdee58..27bceb697 100644 --- a/tests/test/host/test_usbh.c +++ b/tests/test/host/test_usbh.c @@ -87,7 +87,7 @@ void test_usbh_init_hcd_failed(void) void test_usbh_init_enum_task_create_failed(void) { hcd_init_ExpectAndReturn(TUSB_ERROR_NONE); - for (uint8_t i=0; i<TUSB_CFG_HOST_DEVICE_MAX; i++) + for (uint8_t i=0; i<TUSB_CFG_HOST_DEVICE_MAX+1; i++) { osal_semaphore_handle_t sem_hdl_dummy = 0x2233; osal_semaphore_create_IgnoreAndReturn(sem_hdl_dummy); @@ -100,7 +100,7 @@ void test_usbh_init_enum_task_create_failed(void) void test_usbh_init_enum_queue_create_failed(void) { hcd_init_ExpectAndReturn(TUSB_ERROR_NONE); - for (uint8_t i=0; i<TUSB_CFG_HOST_DEVICE_MAX; i++) + for (uint8_t i=0; i<TUSB_CFG_HOST_DEVICE_MAX+1; i++) { osal_semaphore_handle_t sem_hdl_dummy = 0x2233; osal_semaphore_create_IgnoreAndReturn(sem_hdl_dummy); @@ -139,7 +139,7 @@ void test_usbh_init_ok(void) hcd_init_ExpectAndReturn(TUSB_ERROR_NONE); - for (uint8_t i=0; i<TUSB_CFG_HOST_DEVICE_MAX; i++) + for (uint8_t i=0; i<TUSB_CFG_HOST_DEVICE_MAX+1; i++) { osal_semaphore_handle_t sem_hdl_dummy = 0x2233; osal_semaphore_create_IgnoreAndReturn(sem_hdl_dummy); |
