\section{aversive\_\-10-03-12/modules/base/time\_\-ext/time\_\-ext.c File Reference}
\label{time__ext_8c}\index{aversive\_\-10-03-12/modules/base/time\_\-ext/time\_\-ext.c@{aversive\_\-10-03-12/modules/base/time\_\-ext/time\_\-ext.c}}
{\tt \#include $<$aversive.h$>$}\par
{\tt \#include $<$aversive/error.h$>$}\par
{\tt \#include $<$aversive/wait.h$>$}\par
{\tt \#include $<$time\_\-ext.h$>$}\par
{\tt \#include $<$time\_\-ext\_\-config.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf SIG\_\-OVERFLOW2} (void)
\item 
void {\bf time\_\-ext\_\-init} (void)
\item 
void {\bf time\_\-ext\_\-set\_\-prescaler} (uint8\_\-t p)
\item 
uint8\_\-t {\bf time\_\-ext\_\-get\_\-prescaler} (void)
\item 
uint32\_\-t {\bf time\_\-ext\_\-get\_\-s} (void)
\item 
uint32\_\-t {\bf time\_\-ext\_\-get\_\-ns} (void)
\item 
{\bf time\_\-ext\_\-t} {\bf time\_\-ext\_\-get} (void)
\item 
void {\bf time\_\-ext\_\-set} (uint32\_\-t sec, uint32\_\-t nano)
\end{CompactItemize}


\subsection{Function Documentation}
\index{time\_\-ext.c@{time\_\-ext.c}!SIG\_\-OVERFLOW2@{SIG\_\-OVERFLOW2}}
\index{SIG\_\-OVERFLOW2@{SIG\_\-OVERFLOW2}!time_ext.c@{time\_\-ext.c}}
\subsubsection[SIG\_\-OVERFLOW2]{\setlength{\rightskip}{0pt plus 5cm}void SIG\_\-OVERFLOW2 (void)}\label{time__ext_8c_14fbbc20ce1e64eec92c4297535479b9}




Definition at line 62 of file time\_\-ext.c.

References \_\-time\_\-ext::nano, NANO\_\-PER\_\-QUARTZ\_\-TICK, NANO\_\-PER\_\-S, \_\-time\_\-ext::sec, and time\_\-ext\_\-get\_\-prescaler().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-get@{time\_\-ext\_\-get}}
\index{time\_\-ext\_\-get@{time\_\-ext\_\-get}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-get]{\setlength{\rightskip}{0pt plus 5cm}{\bf time\_\-ext\_\-t} time\_\-ext\_\-get (void)}\label{time__ext_8c_d7645492a516c72dc7a945511b91d27c}




Definition at line 297 of file time\_\-ext.c.

References \_\-time\_\-ext::nano, NANO\_\-PER\_\-S, \_\-time\_\-ext::sec, time\_\-ext\_\-get\_\-ns(), and time\_\-ext\_\-get\_\-s().

Referenced by main(), and mylog().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-get\_\-ns@{time\_\-ext\_\-get\_\-ns}}
\index{time\_\-ext\_\-get\_\-ns@{time\_\-ext\_\-get\_\-ns}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-get\_\-ns]{\setlength{\rightskip}{0pt plus 5cm}uint32\_\-t time\_\-ext\_\-get\_\-ns (void)\hspace{0.3cm}{\tt  [inline]}}\label{time__ext_8c_1afb892fd2386c62fea4c0bd4fa666b2}




Definition at line 285 of file time\_\-ext.c.

References \_\-time\_\-ext::nano, NANO\_\-PER\_\-QUARTZ\_\-TICK, and time\_\-ext\_\-get\_\-prescaler().

Referenced by time\_\-ext\_\-get().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-get\_\-prescaler@{time\_\-ext\_\-get\_\-prescaler}}
\index{time\_\-ext\_\-get\_\-prescaler@{time\_\-ext\_\-get\_\-prescaler}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-get\_\-prescaler]{\setlength{\rightskip}{0pt plus 5cm}uint8\_\-t time\_\-ext\_\-get\_\-prescaler (void)\hspace{0.3cm}{\tt  [inline]}}\label{time__ext_8c_23990a169adc3497fd3e746a7a718601}




Definition at line 232 of file time\_\-ext.c.

Referenced by SIG\_\-OVERFLOW2(), and time\_\-ext\_\-get\_\-ns().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-get\_\-s@{time\_\-ext\_\-get\_\-s}}
\index{time\_\-ext\_\-get\_\-s@{time\_\-ext\_\-get\_\-s}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-get\_\-s]{\setlength{\rightskip}{0pt plus 5cm}uint32\_\-t time\_\-ext\_\-get\_\-s (void)\hspace{0.3cm}{\tt  [inline]}}\label{time__ext_8c_77c3aee2d07bda4ae242e114ad02fca7}




Definition at line 280 of file time\_\-ext.c.

References \_\-time\_\-ext::sec.

Referenced by time\_\-ext\_\-get().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-init@{time\_\-ext\_\-init}}
\index{time\_\-ext\_\-init@{time\_\-ext\_\-init}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void time\_\-ext\_\-init (void)}\label{time__ext_8c_9d53c7d425c39676741d434e44a37b61}




Definition at line 175 of file time\_\-ext.c.

References E\_\-TIME\_\-EXT, \_\-time\_\-ext::nano, NOTICE, and \_\-time\_\-ext::sec.

Referenced by main().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-set@{time\_\-ext\_\-set}}
\index{time\_\-ext\_\-set@{time\_\-ext\_\-set}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-set]{\setlength{\rightskip}{0pt plus 5cm}void time\_\-ext\_\-set (uint32\_\-t {\em sec}, \/  uint32\_\-t {\em nano})\hspace{0.3cm}{\tt  [inline]}}\label{time__ext_8c_2cf39b5a768779052dadbe10a82d5c04}




Definition at line 314 of file time\_\-ext.c.

References E\_\-TIME\_\-EXT, \_\-time\_\-ext::nano, NOTICE, and \_\-time\_\-ext::sec.

Referenced by main().\index{time\_\-ext.c@{time\_\-ext.c}!time\_\-ext\_\-set\_\-prescaler@{time\_\-ext\_\-set\_\-prescaler}}
\index{time\_\-ext\_\-set\_\-prescaler@{time\_\-ext\_\-set\_\-prescaler}!time_ext.c@{time\_\-ext.c}}
\subsubsection[time\_\-ext\_\-set\_\-prescaler]{\setlength{\rightskip}{0pt plus 5cm}void time\_\-ext\_\-set\_\-prescaler (uint8\_\-t {\em p})\hspace{0.3cm}{\tt  [inline]}}\label{time__ext_8c_693501606d4e9842b3bb520b391dce13}




Definition at line 223 of file time\_\-ext.c.