/* 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) {
        USBHSD->DEVCMDSTAT &= ~USBHSD_DEVCMDSTAT_DEV_ADDR_MASK;
        USBHSD->DEVCMDSTAT |= adr | USBHSD_DEVCMDSTAT_DEV_EN_MASK;
    }
}