Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device.

This commit is contained in:
Dean Camera 2009-11-30 02:20:26 +00:00
parent b7f6a65c25
commit 1b2cd16976
6 changed files with 57 additions and 2 deletions

View file

@ -111,6 +111,8 @@ int main(void)
/* Echo received bytes from the attached device through the USART */
while (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
putchar(CDC_Host_ReceiveByte(&VirtualSerial_CDC_Interface));
CDC_Host_Flush(&VirtualSerial_CDC_Interface);
}
break;