.bDescriptorType = USB_DT_ENDPOINT,
.bEndpointAddress = USB_DIR_IN | 1,
.bmAttributes = USB_ENDPOINT_XFER_INT,
- .wMaxPacketSize = usb_cpu_to_le16(8),
+ .wMaxPacketSize = usb_cpu_to_le16((uint16_t)8),
.bInterval = 1,
};
.bDescriptorType = USB_DT_ENDPOINT,
.bEndpointAddress = USB_DIR_IN | 3,
.bmAttributes = USB_ENDPOINT_XFER_BULK,
- .wMaxPacketSize = usb_cpu_to_le16(64),
+ .wMaxPacketSize = usb_cpu_to_le16((uint16_t)64),
.bInterval = 0,
};
.bDescriptorType = USB_DT_ENDPOINT,
.bEndpointAddress = USB_DIR_OUT | 2,
.bmAttributes = USB_ENDPOINT_XFER_BULK,
- .wMaxPacketSize = usb_cpu_to_le16(64),
+ .wMaxPacketSize = usb_cpu_to_le16((uint16_t)64),
.bInterval = 0,
};