This simple example shows the principle of using Event Recorder for printf
redirect on an ARM Cortex-M0.

The application calculates the square root for numbers [0..30]. The result
is shown in the Component Viewer window "My First Viewer" and the variable
"i" is shown in the Debug (printf) Viewer window.

To enable this functionality in your project, do the following:
- Set the component Compiler:I/O:STDOUT to use Variant EVR
- Select the component Compiler:Event Recorder
- In the user code, add: #include EventRecorder.h
- In main(), add: EventRecorderInitialize(EventRecordAll, 1);

For more information, refer to the online documentation available at
http://www.keil.com/pack/doc/compiler/RetargetIO/html/_retarget__examples_er.html

How to run:
- Compile the example
- Start the debugging session (in Simulator)
- View the result in "View - Watch Windows - My First Viewer" and
  "View - Serial Windows - Debug (printf) Viewer"
