summaryrefslogtreecommitdiff
path: root/tinyusb/host/hcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-01 14:21:22 +0700
committerhathach <[email protected]>2013-02-01 14:21:22 +0700
commita25da9d3eec9e43b051a94dfe0418b0b5bb9c2d9 (patch)
tree4ad2a610dd30addc1e66031911180c72eb519f8c /tinyusb/host/hcd.h
parent7fc3e4f8fed38cd41574976fbfa21f8be43b2eba (diff)
house keeping
add some more logic for enum task
Diffstat (limited to 'tinyusb/host/hcd.h')
-rw-r--r--tinyusb/host/hcd.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index ed68171b7..415bb184a 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -60,18 +60,13 @@
typedef uint32_t pipe_handle_t;
-/** \brief Initialize HCD
-*
-* \param[in] para1
-* \param[out] para2
-* \return Error Code of the \ref TUSB_ERROR enum
-* \note
-*/
tusb_error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
-/// return the current connect status of roothub port
-bool hcd_port_connect_status(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
+//--------------------------------------------------------------------+
+// PIPE API
+//--------------------------------------------------------------------+
+//pipe_handle_t hcd_pipe_control_open(core_id, speed, hub_addr, hub_port, dev_addr, max_packet_size);
#if 0
//tusb_error_t hcd_pipe_open(
@@ -83,6 +78,13 @@ tusb_error_t hcd_pipe_transfer()ATTR_WARN_UNUSED_RESULT;
tusb_error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT;
#endif
+//--------------------------------------------------------------------+
+// PORT API
+//--------------------------------------------------------------------+
+/// return the current connect status of roothub port
+bool hcd_port_connect_status(uint8_t core_id) ATTR_WARN_UNUSED_RESULT;
+tusb_speed_t hcd_port_speed_get(uint8_t core_id) ATTR_WARN_UNUSED_RESULT;
+
#ifdef __cplusplus
}
#endif