Added new PRNT_Host_BytesReceived() and PRNT_Host_ReceiveByte() functions to the Print Host Class driver.

This commit is contained in:
Dean Camera 2010-09-07 03:38:11 +00:00
parent 6e011f88d9
commit 7aaf9b2036
6 changed files with 99 additions and 19 deletions

View file

@ -56,11 +56,8 @@ uint8_t Printer_SendData(const void* const PrinterCommands,
return ErrorCode;
Pipe_ClearOUT();
while (!(Pipe_IsOUTReady()))
{
if (USB_HostState == HOST_STATE_Unattached)
return PIPE_RWSTREAM_DeviceDisconnected;
}
Pipe_WaitUntilReady();
Pipe_Freeze();