/* Task to manage an enumerated USB CDC device once connected, to print received data from the device to the serial port.  */
void CDCHost_Task(void)
/* Task to manage an enumerated USB CDC device once connected, to print received data from the device to the serial port.  */
void CDCHost_Task(void)
{
	if (USB_HostState != HOST_STATE_Configured)
	  return;
	if (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
	{
		int16_t ReceivedByte = CDC_Host_ReceiveByte(&VirtualSerial_CDC_Interface);
		if (!(ReceivedByte < 0))
		  putchar(ReceivedByte);
	}
}