\hypertarget{_uart_display_8c}{
\section{UartDisplay.c File Reference}
\label{_uart_display_8c}\index{UartDisplay.c@{UartDisplay.c}}
}


UartDisplay Main File.  


{\ttfamily \#include $<$avr/io.h$>$}\par
{\ttfamily \#include $<$avr/interrupt.h$>$}\par
{\ttfamily \#include $<$avr/pgmspace.h$>$}\par
{\ttfamily \#include $<$util/delay.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include \char`\"{}lcd.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}uart.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}button.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}buzzer.h\char`\"{}}\par
Include dependency graph for UartDisplay.c:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{_uart_display_8c__incl}
\end{center}
\end{figure}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\hypertarget{_uart_display_8c_a2eba65976bbf9985f6151b55415c1f2f}{
\#define {\bfseries DISPLAY\_\-bp}~4}
\label{_uart_display_8c_a2eba65976bbf9985f6151b55415c1f2f}

\item 
\hypertarget{_uart_display_8c_aab7decf6dcc29ef065a209ddac080980}{
\#define {\bfseries BACKLIGHT\_\-bp}~5}
\label{_uart_display_8c_aab7decf6dcc29ef065a209ddac080980}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{_uart_display_8c_a0eb48b6146b62e0e20d87fe066fe9f30}{timer2\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Initializes timer2. \item\end{DoxyCompactList}\item 
\hypertarget{_uart_display_8c_a840291bc02cba5474a4cb46a9b9566fe}{
int {\bfseries main} (void)}
\label{_uart_display_8c_a840291bc02cba5474a4cb46a9b9566fe}

\item 
\hypertarget{_uart_display_8c_a7cfcbe42bd266750aeb6e5d71e5ea479}{
{\bfseries ISR} (TIMER2\_\-OVF\_\-vect)}
\label{_uart_display_8c_a7cfcbe42bd266750aeb6e5d71e5ea479}

\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{_uart_display_8c_a052c6d6c4fd9b6fe5b2c4330b1376e57}{
uint8\_\-t {\bfseries cnt} = 0}
\label{_uart_display_8c_a052c6d6c4fd9b6fe5b2c4330b1376e57}

\item 
\hypertarget{_uart_display_8c_a1de47fb032d6866472e2cfd635bcb01a}{
uint8\_\-t {\bfseries cnt2} = 0}
\label{_uart_display_8c_a1de47fb032d6866472e2cfd635bcb01a}

\item 
\hypertarget{_uart_display_8c_a7ee1e2f8634d89027273fbef88ef679c}{
uint8\_\-t \hyperlink{_uart_display_8c_a7ee1e2f8634d89027273fbef88ef679c}{scroll}}
\label{_uart_display_8c_a7ee1e2f8634d89027273fbef88ef679c}

\begin{DoxyCompactList}\small\item\em scroll enable flag \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
UartDisplay Main File. \begin{DoxyAuthor}{Authors}
Dominic Rathje (\href{mailto:dominic.rathje@uni-ulm.de}{\tt dominic.rathje@uni-\/ulm.de})\par
 Christian Degenhart (\href{mailto:christian.degenhart@uni-ulm.de}{\tt christian.degenhart@uni-\/ulm.de}) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.2 
\end{DoxyVersion}
\begin{DoxyNote}{Note}

\begin{DoxyItemize}
\item Compiler : WinAVR 20100110
\item Supported devices : ATMega8 
\end{DoxyItemize}
\end{DoxyNote}


Definition in file \hyperlink{_uart_display_8c_source}{UartDisplay.c}.



\subsection{Function Documentation}
\hypertarget{_uart_display_8c_a0eb48b6146b62e0e20d87fe066fe9f30}{
\index{UartDisplay.c@{UartDisplay.c}!timer2\_\-init@{timer2\_\-init}}
\index{timer2\_\-init@{timer2\_\-init}!UartDisplay.c@{UartDisplay.c}}
\subsubsection[{timer2\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void timer2\_\-init (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{_uart_display_8c_a0eb48b6146b62e0e20d87fe066fe9f30}


Initializes timer2. 


\begin{DoxyItemize}
\item Prescaler is set to 1024
\item Overflow Interrput enabled. 
\end{DoxyItemize}

Definition at line 53 of file UartDisplay.c.

