/* free the USB host channel assigned by idx  */
uint8_t usb_host_freech(usb_core_instance *pdev, uint8_t idx)
/* free the USB host channel assigned by idx  */
uint8_t usb_host_freech(usb_core_instance *pdev, uint8_t idx)
{
    if (idx < USB_MAX_CH_NUM) {
        pdev->host.channel[idx & (USB_MAX_TX_FIFOS - 1U)] &= HC_USED_MASK;
    }
    return (uint8_t)HSTATUS_OK;
}