/* USB Device Set Address Function Parameters: adr: USB Device Address Return Value: None  */
void USBD_SetAddress(uint32_t adr, uint32_t setup)
/* USB Device Set Address Function Parameters: adr: USB Device Address Return Value: None  */
void USBD_SetAddress(uint32_t adr, uint32_t setup)
{
    if (setup == 0) {
        USBHS->DEVICEADDR  = (adr << 25);
        USBHS->DEVICEADDR |= (1UL << 24);
    }
}