/* Try to assign allocate the endpoint for the URB  */
static bool try_alloc_ep_for_urb(usbd_device *dev, usbd_urb *urb)
/* Try to assign allocate the endpoint for the URB  */
static bool try_alloc_ep_for_urb(usbd_device *dev, usbd_urb *urb)
{
	uint8_t addr = urb->transfer.ep_addr;
	if (is_ep_free(dev, addr)) {
		mark_ep_as_free(dev, addr, false);
		return true;
	}
	return false;
}