\section{aversive\_\-10-03-12/modules/comm/uart/uart\_\-send.c File Reference}
\label{uart__send_8c}\index{aversive\_\-10-03-12/modules/comm/uart/uart\_\-send.c@{aversive\_\-10-03-12/modules/comm/uart/uart\_\-send.c}}
{\tt \#include $<$uart.h$>$}\par
{\tt \#include $<$uart\_\-defs.h$>$}\par
{\tt \#include $<$uart\_\-private.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf uart\_\-send} (uint8\_\-t num, char c)
\end{CompactItemize}


\subsection{Function Documentation}
\index{uart\_\-send.c@{uart\_\-send.c}!uart\_\-send@{uart\_\-send}}
\index{uart\_\-send@{uart\_\-send}!uart_send.c@{uart\_\-send.c}}
\subsubsection[uart\_\-send]{\setlength{\rightskip}{0pt plus 5cm}int uart\_\-send (uint8\_\-t {\em num}, \/  char {\em c})}\label{uart__send_8c_d703d5aa05cbfeadc6d2499aefb2cc92}


uart\_\-send is used to send data to the uart 'num'. The data is first stored in the FIFO before beeing sent. If the FIFO is full, the function wait until the uart is ready. The function returns c. 

Definition at line 28 of file uart\_\-send.c.

References cirbuf\_\-add\_\-head(), g\_\-tx\_\-fifo, GLOBAL\_\-IRQ\_\-ARE\_\-MASKED, RXCIE, uart\_\-regs, uart\_\-send\_\-next\_\-char(), uart\_\-send\_\-nowait(), and UDRE.