==============================================================================================
                                   USB DEVICE CDC ACM Example
===============================================================================================
Copyright(C) Redpine Signals 2016
All rights reserved by Redpine Signals.

This program should be used on your own responsibility.
Redpine Signals assumes no responsibility for any losses
incurred by customers or third parties arising from the use of this file. 
                                                  
Function description:
===============================================================================================
This is an Virtual COM example that demonstrates Communication Device Class (CDC)
Abstract Control Model (ACM) on USB Device.
It demonstrates a bridge between USB Virtual COM Port and UART port on the
evaluation board.


===============================================================================================
Environment
===============================================================================================
Test Board:
---------------------
Evaluation board RS14100  

                      
---------------------


Assistance software:
---------------------
Any serial terminal(e.g.CoolTerm) installed on host PC.

The PC will install a Virtual COM Port on the PC.
After installation an additional port "USB Serial Device(COMx)"
can be found under System/Hardware/Device Manager/Ports(COM&LPT).
Number "x" is not fixed as different PC configuration may have different
"x" displayed in the device manager. The USB Host driver assigns "x"
dynamically based on the existing COM port configuration in the system.


===============================================================================================
Usage Procedure:
===============================================================================================
1. Connect USB Host PC with USB cable to USBFS (USB)connector on the evaluation board.
2. Connect PC UART Port with USB cable to UART_USB port connector on the evaluation board.
3. Open two Serial Terminal applications in Windows:
    -  one with "USB Serial Device(COMx)"
    -  one with PC UART Port
	
	
compile and run the application.

Detailed description is available on:
www.keil.com/pack/doc/MW/USB/html/dev_cdc_tutorial.html


===============================================================================================
Pass criteria:
===============================================================================================

1.Data sent from one Serial Terminal application should be received in other and vice versa.

===============================================================================================
Note:
===================================================================================================
1) ISP button should be off whenever code is loading to target.
2) USB works at high speed by default configuration, for operating at full speed below changes have to be made
    
   - In USBD_Config_0.c file USBD0_HS macro should be 0 
   
       24:  //   <o.0>High-speed
       25:  //   <i>Enable High-speed functionality (if device supports it).
       26:  #define USBD0_HS                        0   
   
   - In RTE_Device.h file RTE_USB_USB0_HS_EN macro should be 0.
   
     2354:   //   <h> Device [Driver_USBD0]
     2355:   //   <i> Configuration settings for Driver_USBD0 in component ::Drivers:USB Device
     2356:   //     <o.0> High-speed
     2357:   //     <i> Enable high-speed functionality
     2358:   #define   RTE_USB_USB0_HS_EN            0
   
===================================================================================================



