summaryrefslogtreecommitdiff
path: root/tinyusb/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-28 17:00:51 +0700
committerhathach <[email protected]>2013-02-28 17:00:51 +0700
commit795fe7468d35b62987cee07d35c7cf452447ea70 (patch)
tree8be32c99910341d1b9671b8d047c26da04e1c697 /tinyusb/host
parent82bd4719ce1ab3d67c6d5f32973312250b8a443c (diff)
start to add code for hcd_init test
change hcd_init signature (omit hostid)
Diffstat (limited to 'tinyusb/host')
-rw-r--r--tinyusb/host/hcd.h2
-rw-r--r--tinyusb/host/usbh.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index 5eb705c77..0051b028e 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -66,7 +66,7 @@ typedef uint32_t pipe_handle_t;
//--------------------------------------------------------------------+
// USBH-HCD API
//--------------------------------------------------------------------+
-tusb_error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
+tusb_error_t hcd_init() ATTR_WARN_UNUSED_RESULT;
//--------------------------------------------------------------------+
// PIPE API
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c
index 960a5da2d..e860c3d24 100644
--- a/tinyusb/host/usbh.c
+++ b/tinyusb/host/usbh.c
@@ -88,10 +88,7 @@ tusb_error_t usbh_init(void)
memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1));
- for(i=0; i<TUSB_CFG_HOST_CONTROLLER_NUM; i++)
- {
- ASSERT_STATUS( hcd_init(TUSB_CFG_HOST_CONTROLLER_START_INDEX+i) );
- }
+ ASSERT_STATUS( hcd_init() );
//------------- Enumeration & Reporter Task init -------------//
ASSERT_STATUS( osal_task_create(&enum_task) );