\section{aversive\_\-10-03-12/modules/comm/uart/uart\_\-send\_\-nowait.c File Reference}
\label{uart__send__nowait_8c}\index{aversive\_\-10-03-12/modules/comm/uart/uart\_\-send\_\-nowait.c@{aversive\_\-10-03-12/modules/comm/uart/uart\_\-send\_\-nowait.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\_\-nowait} (uint8\_\-t num, char c)
\end{CompactItemize}


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


uart\_\-send\_\-nowait 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, data is dropped and the function returns -1, else it returns the character c. 

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

References cirbuf\_\-add\_\-head(), CIRBUF\_\-IS\_\-EMPTY, CIRBUF\_\-IS\_\-FULL, g\_\-tx\_\-fifo, IRQ\_\-LOCK, IRQ\_\-UNLOCK, RXCIE, sbi, uart\_\-regs, UDRE, and UDRIE.

Referenced by uart\_\-send().