diff options
| author | hathach <[email protected]> | 2013-06-21 14:20:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-21 14:20:08 +0700 |
| commit | 5c564df8c172af0da3badabfa8e813fdd33949ff (patch) | |
| tree | c0dcc52362aa02e8eb4eb6f45f4354c1bdf2d286 /tinyusb/host/ehci | |
| parent | 3924764dff9d90ccff09e1d657c6f40ed8def8d9 (diff) | |
add api for hcd: hcd_pipe_is_idle
add api for usbh: tusbh_device_get_mounted_class_flag
implement api for custom class
- is mounted
- read
Diffstat (limited to 'tinyusb/host/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 4a030cbbe..b023fafed 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -444,6 +444,12 @@ tusb_error_t hcd_pipe_close(pipe_handle_t pipe_hdl) return TUSB_ERROR_NONE; } +bool hcd_pipe_is_idle(pipe_handle_t pipe_hdl) +{ + ehci_qhd_t *p_qhd = qhd_get_from_pipe_handle( pipe_hdl ); + return (p_qhd->p_qtd_list_head == NULL); +} + //--------------------------------------------------------------------+ // EHCI Interrupt Handler //--------------------------------------------------------------------+ |
