/* SET ADDRESS request */
if (set_address == false)
if ((dev_info & 0x7f))
{
udc_conn = (dev_info & 0x7f);
set_address = true;

req.bRequestType = USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_DEVICE;
req.bRequest = USB_REQ_SET_ADDRESS;
req.wValue = (dev_info & 0x7f);
req.wIndex = 0;
req.wLength = 0;

usb_core_control_request(&req);
}