\section{include/rom/system.h File Reference}
\label{system_8h}\index{include/rom/system.h@{include/rom/system.h}}
ROM Interface: RCX system control functions. 

{\tt \#include $<$sys/irq.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf power\_\-off} (void)
\begin{CompactList}\small\item\em enters software standby mode. \item\end{CompactList}\item 
void {\bf power\_\-init} (void)
\begin{CompactList}\small\item\em disables software standby mode so tm\_\-idle\_\-task() can use the sleep \item\end{CompactList}\item 
void {\bf reset} (void) \_\-\_\-attribute\_\-\_\-((noreturn))
\begin{CompactList}\small\item\em erases Brick\-OS, returning control to ROM. \item\end{CompactList}\item 
void {\bf rom\_\-reset} (void) \_\-\_\-attribute\_\-\_\-((noreturn))
\begin{CompactList}\small\item\em turns off interrupts, then issues reset. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
ROM Interface: RCX system control functions. 

\begin{Desc}
\item[Author:]Markus L. Noga $<${\tt markus@noga.de}$>$\end{Desc}


Definition in file {\bf system.h}.

\subsection{Function Documentation}
\index{system.h@{system.h}!power_init@{power\_\-init}}
\index{power_init@{power\_\-init}!system.h@{system.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void power\_\-init (void)\hspace{0.3cm}{\tt  [inline]}}\label{system_8h_a1}


disables software standby mode so tm\_\-idle\_\-task() can use the sleep 



Definition at line 54 of file system.h.

References \_\-\_\-asm\_\-\_\-().

Referenced by kmain().\index{system.h@{system.h}!power_off@{power\_\-off}}
\index{power_off@{power\_\-off}!system.h@{system.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void power\_\-off (void)\hspace{0.3cm}{\tt  [inline]}}\label{system_8h_a0}


enters software standby mode. 



Definition at line 42 of file system.h.

References \_\-\_\-asm\_\-\_\-().

Referenced by kmain().\index{system.h@{system.h}!reset@{reset}}
\index{reset@{reset}!system.h@{system.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void reset (void)}\label{system_8h_a2}


erases Brick\-OS, returning control to ROM. 



Referenced by rom\_\-reset().\index{system.h@{system.h}!rom_reset@{rom\_\-reset}}
\index{rom_reset@{rom\_\-reset}!system.h@{system.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void rom\_\-reset (void)\hspace{0.3cm}{\tt  [inline]}}\label{system_8h_a3}


turns off interrupts, then issues reset. 



Definition at line 68 of file system.h.

References disable\_\-irqs(), and reset().

Referenced by kmain().