/* deinitialize interface by freeing host channels allocated to interface  */
void usbh_msc_itf_deinit(usbh_host *uhost)
/* deinitialize interface by freeing host channels allocated to interface  */
void usbh_msc_itf_deinit(usbh_host *uhost)
{
    usbh_msc_handler *msc = (usbh_msc_handler *)uhost->active_class->class_data;
    if (msc->pipe_out) {
        usb_pipe_halt (uhost->data, msc->pipe_out);
        usbh_pipe_free (uhost->data, msc->pipe_out);
        msc->pipe_out = 0U;
    }
    if (msc->pipe_in) {
        usb_pipe_halt (uhost->data, msc->pipe_in);
        usbh_pipe_free (uhost->data, msc->pipe_in);
        msc->pipe_in = 0U;
    }
}