diff options
| author | hathach <[email protected]> | 2018-12-11 01:02:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-11 01:03:15 +0700 |
| commit | 7c2056defbc9aff3f7aaba4763fd0630df9159bf (patch) | |
| tree | 51b05e9a3403cfe7aa89a93a95f126453c418afa /src/host/hcd.h | |
| parent | 7a626dbc8b7edcf3303deb100f713f12038fefbe (diff) | |
remove pipe handle in host msc
Diffstat (limited to 'src/host/hcd.h')
| -rw-r--r-- | src/host/hcd.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h index f19812379..3c34a5609 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -49,6 +49,9 @@ extern "C" {
#endif
+ //--------------------------------------------------------------------+
+// MACRO CONSTANT TYPEDEF
+//--------------------------------------------------------------------+
typedef enum
{
HCD_EVENT_DEVICE_ATTACH,
@@ -93,13 +96,6 @@ enum { #endif
//--------------------------------------------------------------------+
-// MACRO CONSTANT TYPEDEF
-//--------------------------------------------------------------------+
-typedef struct {
- uint8_t reserved[4];
-} pipe_handle_t;
-
-//--------------------------------------------------------------------+
// USBH-HCD API
//--------------------------------------------------------------------+
bool hcd_init(void);
@@ -131,7 +127,6 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t * // PIPE API
//--------------------------------------------------------------------+
// TODO control xfer should be used via usbh layer
-
bool hcd_pipe_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const * ep_desc);
bool hcd_pipe_queue_xfer(uint8_t dev_addr, uint8_t ep_addr, uint8_t buffer[], uint16_t total_bytes); // only queue, not transferring yet
bool hcd_pipe_xfer(uint8_t dev_addr, uint8_t ep_addr, uint8_t buffer[], uint16_t total_bytes, bool int_on_complete);
|
