|
|
@ -309,7 +309,9 @@ uint16_t CDC_Host_BytesReceived(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo
|
|
|
|
Pipe_SetPipeToken(PIPE_TOKEN_IN);
|
|
|
|
Pipe_SetPipeToken(PIPE_TOKEN_IN);
|
|
|
|
Pipe_Unfreeze();
|
|
|
|
Pipe_Unfreeze();
|
|
|
|
|
|
|
|
|
|
|
|
if (Pipe_IsINReceived() && !(Pipe_BytesInPipe()))
|
|
|
|
if (Pipe_IsINReceived())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!(Pipe_BytesInPipe()))
|
|
|
|
Pipe_ClearIN();
|
|
|
|
Pipe_ClearIN();
|
|
|
|
|
|
|
|
|
|
|
|
BytesInPipe = Pipe_BytesInPipe();
|
|
|
|
BytesInPipe = Pipe_BytesInPipe();
|
|
|
@ -317,6 +319,13 @@ uint16_t CDC_Host_BytesReceived(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo
|
|
|
|
|
|
|
|
|
|
|
|
return BytesInPipe;
|
|
|
|
return BytesInPipe;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Pipe_Freeze();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t CDC_Host_ReceiveByte(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo)
|
|
|
|
uint8_t CDC_Host_ReceiveByte(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo)
|
|
|
|
{
|
|
|
|
{
|
|
|
|