summaryrefslogtreecommitdiff
path: root/tinyusb/host/hcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-01 10:33:43 +0700
committerhathach <[email protected]>2013-02-01 10:33:43 +0700
commit9e3785e7e1bd5bac3c8e24477edbde12cc09dd4b (patch)
treec2233323659aeda002dbbcb6e910b669f1147aac /tinyusb/host/hcd.h
parent1b963f6a7117d754c47e860159ac0aa90d1db6dc (diff)
add std=gnu99 for test build
add hcd_init to usbh_init and update test code add TUSB_CFG_OS_TICK_PER_SECOND define for TUSB_OS_NONE change osal_semaphore_wait and osal_queue_receive API to have timeout effectively
Diffstat (limited to 'tinyusb/host/hcd.h')
-rw-r--r--tinyusb/host/hcd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h
index 9ea26bdda..ed68171b7 100644
--- a/tinyusb/host/hcd.h
+++ b/tinyusb/host/hcd.h
@@ -60,7 +60,6 @@
typedef uint32_t pipe_handle_t;
-#if 0
/** \brief Initialize HCD
*
* \param[in] para1
@@ -71,6 +70,10 @@ typedef uint32_t pipe_handle_t;
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;
+
+#if 0
//tusb_error_t hcd_pipe_open(
// uint8_t hostid, uint8_t device_address,
//