/* de-initialize the host pipes used for the HID class  */
void usbh_hid_itf_deinit(usbh_host *puhost)
/* de-initialize the host pipes used for the HID class  */
void usbh_hid_itf_deinit(usbh_host *puhost)
{
    usbh_hid_handler *hid = (usbh_hid_handler *)puhost->active_class->class_data;
    if (0x00U != hid->pipe_in) {
        usb_pipe_halt (puhost->data, hid->pipe_in);
        usbh_pipe_free (puhost->data, hid->pipe_in);
        hid->pipe_in = 0U;
    }
    if (0x00U != hid->pipe_out) {
        usb_pipe_halt (puhost->data, hid->pipe_out);
        usbh_pipe_free (puhost->data, hid->pipe_out);
        hid->pipe_out = 0U;
    }
}