Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device.
This commit is contained in:
parent
b7f6a65c25
commit
1b2cd16976
6 changed files with 57 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue