summaryrefslogtreecommitdiff
path: root/tinyusb/host/hcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-04 13:51:20 +0700
committerhathach <[email protected]>2013-02-04 13:51:20 +0700
commit94486f55ec3b24f720cabf1218e8eb291b8f620c (patch)
tree980c0e2fa5ce83cb76cd74bf1c271e7a3f96689c /tinyusb/host/hcd.h
parenta5b29c5d333fc5fe3bcd01de145e130765ed1d48 (diff)
add usbh_hcd to hold common structure/typedef for usbh and hcd
Diffstat (limited to 'tinyusb/host/hcd.h')
-rw-r--r--tinyusb/host/hcd.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index 31c1feb4d..d4c288223 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -56,19 +56,23 @@
#endif
#include "common/common.h"
-//#include "usbh.h"
+#include "usbh_hcd.h"
+
+//--------------------------------------------------------------------+
+// MACRO CONSTANT TYPEDEF
+//--------------------------------------------------------------------+
-typedef uint32_t pipe_handle_t;
+//--------------------------------------------------------------------+
+// USBH-HCD API
+//--------------------------------------------------------------------+
tusb_error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
//--------------------------------------------------------------------+
// PIPE API
//--------------------------------------------------------------------+
-//pipe_handle_t hcd_pipe_addr0_open(usbh_device_addr0_t const * dev_addr0);
-pipe_handle_t hcd_pipe_addr0_open(uint8_t core_id, tusb_speed_t speed, uint8_t hub_addr, uint8_t hub_port);
-
+pipe_handle_t hcd_pipe_addr0_open(usbh_device_addr0_t const * dev_addr0);
pipe_handle_t hcd_pipe_control_open(uint8_t dev_addr, uint8_t max_packet_size);
tusb_error_t hcd_pipe_control_xfer(pipe_handle_t pipe_hdl, tusb_std_request_t const * p_request, uint8_t data[]);
pipe_handle_t hcd_pipe_open(uint8_t dev_addr, tusb_descriptor_endpoint_t const * endpoint_desc);