/* Prepare and configure most of the parts, if the controller has a way of detecting VBUS activity it should be enabled here. Only udc_skeleton_enable() makes device visible to the host.  */
static int udc_skeleton_init(const struct device *dev)
/* Prepare and configure most of the parts, if the controller has a way of detecting VBUS activity it should be enabled here. Only udc_skeleton_enable() makes device visible to the host.  */
static int udc_skeleton_init(const struct device *dev)
{
	if (udc_ep_enable_internal(dev, USB_CONTROL_EP_OUT,
				   USB_EP_TYPE_CONTROL, 64, 0)) {
		LOG_ERR("Failed to enable control endpoint");
		return -EIO;
	}
	if (udc_ep_enable_internal(dev, USB_CONTROL_EP_IN,
				   USB_EP_TYPE_CONTROL, 64, 0)) {
		LOG_ERR("Failed to enable control endpoint");
		return -EIO;
	}
	return 0;
}