\section{aversive\_\-10-03-12/modules/debug/diagnostic/diagnostic.h File Reference}
\label{diagnostic_8h}\index{aversive\_\-10-03-12/modules/debug/diagnostic/diagnostic.h@{aversive\_\-10-03-12/modules/debug/diagnostic/diagnostic.h}}
{\tt \#include $<$diagnostic\_\-config.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf show\_\-int\_\-loop} (void)
\item 
uint16\_\-t {\bf min\_\-stack\_\-space\_\-available} (void)
\end{CompactItemize}


\subsection{Function Documentation}
\index{diagnostic.h@{diagnostic.h}!min\_\-stack\_\-space\_\-available@{min\_\-stack\_\-space\_\-available}}
\index{min\_\-stack\_\-space\_\-available@{min\_\-stack\_\-space\_\-available}!diagnostic.h@{diagnostic.h}}
\subsubsection[min\_\-stack\_\-space\_\-available]{\setlength{\rightskip}{0pt plus 5cm}uint16\_\-t min\_\-stack\_\-space\_\-available (void)}\label{diagnostic_8h_a431d3090cd08cdf9c367b4835c59123}


This functuion allows to monitor the maximal stack space that was used since the last reset (peak value) you can then monitor the available space in your ram returns the minimal value of the free space left 

Definition at line 69 of file stack\_\-space.c.

References i.\index{diagnostic.h@{diagnostic.h}!show\_\-int\_\-loop@{show\_\-int\_\-loop}}
\index{show\_\-int\_\-loop@{show\_\-int\_\-loop}!diagnostic.h@{diagnostic.h}}
\subsubsection[show\_\-int\_\-loop]{\setlength{\rightskip}{0pt plus 5cm}void show\_\-int\_\-loop (void)}\label{diagnostic_8h_6899f2afeab40b95f6db18e4b491697e}


shows the interrupt cycles on an oscilloscope or a multimeter you can then measure the interrupt busy time of your device. this function is an infinite loop which has to be the main program, and will be interrupted. a port bit is needed as diagnostic interface with scope or multimeter. if you use a scope : freezing of the oscillation shows interrupt if you use a multimeter : voltage is proportionnal to idle time 0V $>$$>$ 0\% idle (always busy) Vcc/2 $>$$>$ 100\% idle (not interupted) be careful, you perhaps need a low pass filter for your voltmeter 