============================================================================================================================================================
                                                          Capacitive Touch sensor 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:
===============================================================================================
The Capacitive touch sensor example illustartes about wakeup from sleep whenever the touch 
happened on any one of the eight input sensor during on period of the touch sensor.
If Touch is not there processor will wakeup based on Deep Sleep Timer continuously.

===============================================================================================
Environment
===============================================================================================
Test Board:
---------------------
Smart EVK board with Touch panel.

Assistance tool:
---------------------
none

Assistance software:
---------------------
logic analyzer 

Setup
-----
Mount touch panel on EVK peripheral card, connect the logic analyser to observe touch sensor toggles


===============================================================================================
Usage Procedure:
===============================================================================================
Compile and run the programm.  

 
Pass criteria
=============
1.Open the logic analyzer software and check on UULPGPIO_2 toggles whenever touch happened on 
  any one of the sensor inputs.

2.To see which sensor got touched define the DEBUG_UART in c\c++ compiler window
  and connect usb power cable to the on board UART USB port and set the uart baud 
  rate to the 115200 and see the prints on terminal.

  e.g: If sensor 1 got touched it will print sensor 1 is pressed


3.Power consumption can be in the range of 17.53 microA to 22.68 microA.

===============================================================================================
Notice:
===============================================================================================
 
Power consumption will be optimised in further releases
===============================================================================================

