summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-13 00:02:45 +0700
committerhathach <[email protected]>2013-03-13 00:02:45 +0700
commit79e277d323a4c20070dbd9d34d058ea3b6b55e7d (patch)
tree85bfcc2247a5558b939d6efc0b9ba54fd50d569b /tests
parentd2bd80109ef5fb46ca46fae168f5d3a5096794bc (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.c6
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);