/* Reset all non EP0 endpoint (and remove the transfers too) Cancel all non EP0 transfer. Usage: SET_CONFIGURATION  */
void usbd_purge_all_non_ep0_transfer(usbd_device *dev, usbd_transfer_status status)
/* Reset all non EP0 endpoint (and remove the transfers too) Cancel all non EP0 transfer. Usage: SET_CONFIGURATION  */
void usbd_purge_all_non_ep0_transfer(usbd_device *dev, usbd_transfer_status status)
{
	purge_non_ep0_tranfer_from_queue(dev, &dev->urbs.active, status);
	purge_non_ep0_tranfer_from_queue(dev, &dev->urbs.waiting, status);
	dev->urbs.ep_free |= ~0x00010001;
}