summaryrefslogtreecommitdiff
path: root/src/class/msc
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-11 13:15:05 +0700
committerhathach <[email protected]>2018-12-11 13:15:05 +0700
commitdbc560658a900525acd11ffcae2e59839d9c6fe5 (patch)
tree80fb910f81090ebaf463a80225da26895e360caa /src/class/msc
parent0d04e6eb96935723f17969bf43a33532fcebcbf6 (diff)
more hcd_pipe to hcd_edpt rename
Diffstat (limited to 'src/class/msc')
-rw-r--r--src/class/msc/msc_host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/class/msc/msc_host.c b/src/class/msc/msc_host.c
index 8e51debcf..0b1359264 100644
--- a/src/class/msc/msc_host.c
+++ b/src/class/msc/msc_host.c
@@ -76,7 +76,7 @@ bool tuh_msc_is_mounted(uint8_t dev_addr)
bool tuh_msc_is_busy(uint8_t dev_addr)
{
return msch_data[dev_addr-1].is_initialized &&
- hcd_pipe_is_busy(dev_addr, msch_data[dev_addr-1].ep_in);
+ hcd_edpt_busy(dev_addr, msch_data[dev_addr-1].ep_in);
}
uint8_t const* tuh_msc_get_vendor_name(uint8_t dev_addr)
@@ -361,7 +361,7 @@ bool msch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it
// NOTE: my toshiba thumb-drive stall the first Read Capacity and require the sequence
// Read Capacity --> Stalled --> Clear Stall --> Request Sense --> Read Capacity (2) to work
- if ( hcd_pipe_is_stalled(dev_addr, p_msc->ep_in) )
+ if ( hcd_edpt_stalled(dev_addr, p_msc->ep_in) )
{
// clear stall TODO abstract clear stall function
request = (tusb_control_request_t) {
@@ -374,7 +374,7 @@ bool msch_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_interface_t const *it
TU_ASSERT(usbh_control_xfer( dev_addr, &request, NULL ));
- hcd_pipe_clear_stall(dev_addr, p_msc->ep_in);
+ hcd_edpt_clear_stall(dev_addr, p_msc->ep_in);
TU_ASSERT( osal_semaphore_wait(msch_sem_hdl, SCSI_XFER_TIMEOUT) ); // wait for SCSI status
//------------- SCSI Request Sense -------------//