/* USB Device Request - Data In Stage Parameters: None Return Value: None  */
void USBD_DataInStage(void)
/* USB Device Request - Data In Stage Parameters: None Return Value: None  */
void USBD_DataInStage(void)
{
    U32 cnt;
    if (USBD_EP0Data.Count > usbd_max_packet0) {
        cnt = usbd_max_packet0;
    } else {
        cnt = USBD_EP0Data.Count;
    }
    if (!cnt) {
        USBD_ZLP = 0;
    }
    cnt = USBD_WriteEP(0x80, USBD_EP0Data.pData, cnt);
    USBD_EP0Data.pData += cnt;
    USBD_EP0Data.Count -= cnt;
}