update 1.8
This commit is contained in:
@@ -237,12 +237,12 @@ uint8_t USBFS_Endp_DataUp(uint8_t endp, uint8_t *pbuf, uint16_t len, uint8_t mod
|
||||
{
|
||||
memcpy( USBFSD_UEP_BUF( endp ) + buf_load_offset, pbuf, len );
|
||||
}
|
||||
/* Set end-point busy */
|
||||
USBFS_Endp_Busy[ endp ] = 0x01;
|
||||
/* tx length */
|
||||
USBFSD_UEP_TLEN( endp ) = len;
|
||||
/* response ack */
|
||||
USBFSD_UEP_TX_CTRL( endp ) = ( USBFSD_UEP_TX_CTRL( endp ) & ~USBFS_UEP_T_RES_MASK ) | USBFS_UEP_T_RES_ACK;
|
||||
/* Set end-point busy */
|
||||
USBFS_Endp_Busy[ endp ] = 0x01;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -70,7 +70,7 @@ typedef struct __PACKED _RING_BUFF_COMM
|
||||
volatile uint8_t RemainPack;
|
||||
volatile uint8_t PackLen[DEF_Ring_Buffer_Max_Blks];
|
||||
volatile uint8_t StopFlag;
|
||||
} RING_BUFF_COMM, pRING_BUFF_COMM;
|
||||
} RING_BUFF_COMM, *pRING_BUFF_COMM;
|
||||
|
||||
/* Setup Request Packets */
|
||||
#define pUSBFS_SetupReqPak ((PUSB_SETUP_REQ)USBFS_EP0_Buf)
|
||||
|
||||
Reference in New Issue
Block a user