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.

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

Board:                  ST 'STM32756G-EVAL'
Microcontroller:        ST 'STM32F756NGH6'
Clock Settings:         XTAL       =  25 MHz
                        CPUCLK     = 216 MHz
                        USB HS CLK =  60 MHz (from external ULPI PHY)
Bridge functionality:   OTG_HS (connector CN8) <-> USART1

NOTE:
  Do not use USB Full-speed, because USART1_TX and also OTG_FS_VBUS are connected to PA9.

The PC will install a Virtual COM Port on the PC (see Driver Installation).
After installation an additional port "STM32756G_EVAL_USB VCOM Port(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.

Testing the USB Virtual COM Port:

  Connect USB Host PC with USB cable to OTG_HS (CN8) connector on the embedded board.
  Connect PC UART Port with UART cable to USART1 connector on the embedded board.
  Open two Serial Terminal applications in Windows:
    -  one with "STM32756G_EVAL_USB VCOM Port(COMx)"
    -  one with PC UART Port
  Data sent from one Serial Terminal application should be received in other and vice versa.

The program is available in different targets:

 - Debug:
   - Compiler:                  ARM Compiler optimization Level 1
   - Compiler:Event Recorder:   Enabled
   - CMSIS:RTOS2:Keil RTX5:     Source
   - USB:CORE:                  Debug

 - Release:
   - Compiler:                  ARM Compiler optimization Level 3
   - Compiler:Event Recorder:   Disabled
   - CMSIS:RTOS2:Keil RTX5:     Library
   - USB:CORE:                  Release

Important Note: STM32756G-EVAL does not have routed flow control pins on the UART
                so it is possible that this example will loose characters
                because of lack of flow control

JUMPER SETTINGS:
  - JP13 (power source) in position "E5V" (on revision B: "PSU")
  - JP8 removed (default)
  - JP14 (USART1_RX) in position 1-2 (default)
  - JP20 (USART1_TX) in position 1-2 (default)
  - JP7  (USART1_RX) in position 1-2 (default)

Note:
  - Power the board on CN17 (5V) then connect ST-LINK to CN21 if it is used for
    debugging
  - Define C Preprocessor symbol USE_STM32756G_EVAL_REVA when using Board Rev A
  - Define C Preprocessor symbol USE_MB1046 when using LCD Board MCB1046


Driver Files:
-------------
    - stm32756g-eval-vcom.inf : Driver setup information.
    - stm32756g-eval-vcom.cat : Digitally signed driver catalog file for Host PCs.

Note : Digitally signing of the driver catalog file is required to install
drivers on 64-bit PCs using Windows Vista or later Windows versions. Please
refer to Microsoft documentation for further information.


Driver Installation:
--------------------
     "Welcome to the Found New Hardware Wizard" appears
     - select 'No, not this time'
     - press  'Next'

     - select 'Install from a list or specific location (Advanced)'
     - press  'Next'

     - select 'Search for the best driver in these locations'
     - check  'include this location in the search'
     - set to <project folder>
     - press 'Next'

     "Hardware Installation" appears
     "has not passed Windows Logo testing..."
     - press 'Continue Anyway'

     "Completing the Found New Hardware Wizard" appears
     - press 'Finish'
