add cdc host driver close cdch_close

refractor
- add helper function in ehci qhd_next & qtd_next
- extract function qhd_create_pipe_handle
rename tusb_transfer_type_t to tusb_xfer_type_t
add some handling for stall
This commit is contained in:
hathach
2013-07-01 18:53:25 +07:00
parent d8bd749c75
commit 3f9f3f08d2
4 changed files with 88 additions and 25 deletions

View File

@@ -67,7 +67,7 @@ typedef enum {
TUSB_XFER_ISOCHRONOUS ,
TUSB_XFER_BULK ,
TUSB_XFER_INTERRUPT
}tusb_transfer_type_t;
}tusb_xfer_type_t;
typedef enum {
TUSB_DIR_HOST_TO_DEV = 0,
@@ -198,6 +198,8 @@ typedef enum tusb_device_state_{
typedef enum {
TUSB_EVENT_XFER_COMPLETE,
TUSB_EVENT_XFER_ERROR,
TUSB_EVENT_XFER_STALLED,
TUSB_EVENT_INTERFACE_OPEN,
TUSB_EVENT_INTERFACE_CLOSE,