\hypertarget{index_intro}{}\section{Introduction}\label{index_intro}
This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the SleepWalking example.

SleepWalking feature allows to reduce the power consumption of the peripherals in sleep modes It allows the UC3L Event System to handle asynchronous events in various sleep modes by requesting a module local clock for the duration of the Event processing. When the event processing is done, the clock request is disserted and the module goes back to sleep.

The given example demonstrates the use of ADC using SleepWalking feature. The ADCIFB interface once configured remains in the sleep mode. The AST (Asynchronous Timer) is configured to run at 32KHz oscillator and periodically generates an event which will be used by ADCIFB. Upon receiving the event ADCIFB module clock will be enabled and analog value on the selected channels will be sampled. The sampled value will be compared against a preset value and if it is greater than preset an interrupt will be generated by ADCIFB. This will wake up the CPU as well as rest of the system. The ISR will execute LED chaser sequence and system will back to sleep. In case the sampled value is less than preset ADCIFB will go back to sleep.

The example toggles PA21 (LED0), PB10 (LED1), PB02 (LED2) and PB03 (LED3)in a sequence in the same order.\hypertarget{index_files}{}\section{Main Files}\label{index_files}

\begin{DoxyItemize}
\item gpio.c: GPIO driver;
\item gpio.h: GPIO driver header file;
\item adcifb.c: adcifb driver;
\item adcifb.h: adcifb driver header file;
\item ast.c: ast driver;
\item ast.h: ast driver header file;
\item SleepWalking.c: SleepWalking example using AST and ADCIFB.
\end{DoxyItemize}\hypertarget{index_compinfo}{}\section{Compilation Info}\label{index_compinfo}
This software was written for the GNU GCC for AVR32 and IAR Systems compiler for AVR32. Other compilers may or may not work.\hypertarget{index_deviceinfo}{}\section{Device Info}\label{index_deviceinfo}
All AVR32 devices with GPIO/AST/ADCIFB modules can be used. This example has been tested with the following setup:
\begin{DoxyItemize}
\item AT32UC3L-\/EK evaluation kit;
\end{DoxyItemize}\hypertarget{index_setupinfo}{}\section{Setup Information}\label{index_setupinfo}

\begin{DoxyItemize}
\item CPU speed for UC3L: {\itshape  12 MHz, no external component used \/}
\end{DoxyItemize}\hypertarget{index_contactinfo}{}\section{Contact Information}\label{index_contactinfo}
For further information, visit \href{http://www.atmel.com/products/AVR32/}{\tt Atmel AVR32}.\par
 Support and FAQ: \href{http://support.atmel.no/}{\tt http://support.atmel.no/} 