===============================================================================================
                                        ADC Static mode 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:
===============================================================================================
In this mode ADC will generate only one digital value,this mode is used for temperature sensor
application.
following configuration used in example : 
1.Sampling rate  : 1Msps
2.Input type    : Single ended.
3.Positive input to ADC : ULP_GPIO4
4.Negative input to ADC : ULP_GPIO5,For single ended data acquisition this parameter not used.
5.Reference Voltage     : 2.8V (On LDO)(To change reference voltage modify 'vref_value' variable #line29)
6.Number of sample collection for each interrupt : 1
7.Enable "GAIN_OFFSET_CAL_EN"(#line39 rsi_adc.h) macro and apply the gain-offset calculation on ADC output. 
ADC will convert till 2.8V input voltage(Till Vref value).
===============================================================================================
Environment
===============================================================================================
Test Board:
---------------------
Smark EVK Rev1.2

Assistance software:
---------------------
None

===============================================================================================
Usage Procedure:
===============================================================================================
Give the input to ULP_GPIO_4 for single ended mode.
Give the positive input on ULP_GPIO_4 and negative input on ULP_GPIO_5 in differential mode.  
===============================================================================================
Pass criteria:
===============================================================================================
UART will print equivalent ADC input voltage from ADC samples.  
===============================================================================================
Note :
=============================================================================================== 
1.Here "GAIN_OFFSET_CAL_EN" macro already define in (Options for Target --> C/C++ -->Define).  
===============================================================================================