/**
  @page WhiteNoiseMethod AN2668 WhiteNoiseMethod Readme File
  
  @verbatim
  ******************** (C) COPYRIGHT 2009 STMicroelectronics *******************
  * @file WhiteNoiseMethod/readme.txt 
  * @author   MCD Application Team
  * @version  V2.0.0
  * @date     04/27/2009
  * @brief    Description of the AN2668 Application note's white noise firmware.
  ******************************************************************************
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  ******************************************************************************
   @endverbatim

@par Description

This firmware gives the STM32 ADC oversampling using white noise. This method 
consists on sampling the input signal OSR times and shifting the result by the 
required additional bits. 
The timer TIM2 is used to generate the input signal sampling frequency. 
The STM32 ADC1 clock is configured to 14Mhz and the channel 10 is converted (PC.00).
After OSR DMA transfer from the ADC data register to a buffer in RAM, the new 
sample is computed. 

When uncommenting the line #define Thermal_Noise_Measure, the ADC thermal noise 
can be determined.
When uncommenting the line #define Oversampling_Test, the oversampled data is 
displayed on the hyperterminal and can be captured in a file for the evaluation.
results.
The Hyperterminal configuration is 115.2KB and 8-bit data with 1 stop bit.

@par Directory contents 

  - inc: containing the user header files  
     - WhiteNoiseMethod/inc/stm32f10x_conf.h  Library Configuration files
     - WhiteNoiseMethod/inc/stm32f10x_it.h    Interrupt handlers header files
     - WhiteNoiseMethod/inc/oversampling.h    Oversampling header file
    
  - src: containg the user source files  
    - WhiteNoiseMethod/src/oversampling.c    Oversampling source file 
    - WhiteNoiseMethod/src/stm32f10x_it.c    Interrupt handlers
    - WhiteNoiseMethod/src/main.c            Main program

@par Hardware and Software environment 

    - This example runs on STM32F10x High-Density, STM32F10x Medium-Density and
      STM32F10x Low-Density Devices.
            
    - This example has been tested with STMicroelectronics STM3210B-EVAL and 
      STM3210B-EVAL  evaluations boards and can be easily tailored to any other 
      supported device and development board.
      
    - Connect the input signal to be converted on ADC Channel 10: PC.00
             
@par How to use it? 

In order to load the Oversampling White Noise Method code, you have do the following:

 - EWARMv5: 
    - Open the White_Noise.eww workspace
    - In the workspace toolbar select the project config:
        - STM3210B-EVAL: to configure the project for STM32 Medium-density devices
        - STM3210E-EVAL: to configure the project for STM32 High-density devices
    - Rebuild all files: Project->Rebuild all
    - Load project image: Project->Debug
    - Run program: Debug->Go(F5)

 - RIDE 
    - Open the White_Noise.rprj project
    - In the configuration toolbar(Project->properties) select the project config:
        - STM3210B-EVAL: to configure the project for STM32 Medium-density devices
        - STM3210E-EVAL: to configure the project for STM32 High-density devices
    - Rebuild all files: Project->build project
    - Load project image: Debug->start(ctrl+D)
    - Run program: Debug->Run(ctrl+F9)

 - RVMDK 
    - Open the White_Noise.Uv2 project
    - In the build toolbar select the project config:
        - STM3210B-EVAL: to configure the project for STM32 Medium-density devices
        - STM3210E-EVAL: to configure the project for STM32 High-density devices
    - Rebuild all files: Project->Rebuild all target files
    - Load project image: Debug->Start/Stop Debug Session
    - Run program: Debug->Run (F5)
    

@note
 - Low-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 16 and 32 Kbytes.
 - Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 32 and 128 Kbytes.
 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 256 and 512 Kbytes.   
        
 * <h2><center>&copy; COPYRIGHT 2009 STMicroelectronics</center></h2>
 */
