diff options
| author | hathach <[email protected]> | 2018-12-11 23:57:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-12 00:00:33 +0700 |
| commit | 67d6d753d66ffb821e9cfc4831d44f6b2f8549b8 (patch) | |
| tree | 0e2a659601fd86f8079f25b1326408307638006a /src/class | |
| parent | c94df5150308e451baccae2857525d50fe1df232 (diff) | |
replace all hcd pipe close by hcd_device_remove
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc_host.c | 5 | ||||
| -rw-r--r-- | src/class/hid/hid_host.c | 1 | ||||
| -rw-r--r-- | src/class/msc/msc_host.c | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/src/class/cdc/cdc_host.c b/src/class/cdc/cdc_host.c index 53f62d684..159a13990 100644 --- a/src/class/cdc/cdc_host.c +++ b/src/class/cdc/cdc_host.c @@ -233,11 +233,6 @@ void cdch_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t x void cdch_close(uint8_t dev_addr)
{
cdch_data_t * p_cdc = &cdch_data[dev_addr-1];
-
- hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, p_cdc->ep_notif);
- hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, p_cdc->ep_in);
- hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, p_cdc->ep_out);
-
tu_memclr(p_cdc, sizeof(cdch_data_t));
}
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c index aa93f7837..1e44055ec 100644 --- a/src/class/hid/hid_host.c +++ b/src/class/hid/hid_host.c @@ -67,7 +67,6 @@ static inline bool hidh_interface_open(uint8_t dev_addr, uint8_t interface_numbe static inline void hidh_interface_close(hidh_interface_info_t *p_hid)
{
- (void) hcd_pipe_close(p_hid->pipe_hdl);
tu_memclr(p_hid, sizeof(hidh_interface_info_t));
}
diff --git a/src/class/msc/msc_host.c b/src/class/msc/msc_host.c index 0b1359264..2c9b2dec7 100644 --- a/src/class/msc/msc_host.c +++ b/src/class/msc/msc_host.c @@ -413,9 +413,6 @@ void msch_isr(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t x void msch_close(uint8_t dev_addr)
{
- (void) hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, msch_data[dev_addr-1].ep_in);
- (void) hcd_pipe_close(TUH_OPT_RHPORT, dev_addr, msch_data[dev_addr-1].ep_out);
-
tu_memclr(&msch_data[dev_addr-1], sizeof(msch_interface_t));
osal_semaphore_reset(msch_sem_hdl);
|
