AVR Libc Home Page AVRs AVR Libc Development Pages
Main Page User Manual Library Reference FAQ Alphabetical Index Example Projects

uart.h

00001 /*
00002  * ----------------------------------------------------------------------------
00003  * "THE BEER-WARE LICENSE" (Revision 42):
00004  * <joerg@FreeBSD.ORG> wrote this file.  As long as you retain this notice you
00005  * can do whatever you want with this stuff. If we meet some day, and you think
00006  * this stuff is worth it, you can buy me a beer in return.        Joerg Wunsch
00007  * ----------------------------------------------------------------------------
00008  *
00009  * Stdio demo, UART declarations
00010  *
00011  * $Id: uart.h 1008 2005-12-28 21:38:59Z joerg_wunsch $
00012  */
00013 
00014 /*
00015  * Perform UART startup initialization.
00016  */
00017 void    uart_init(void);
00018 
00019 /*
00020  * Send one character to the UART.
00021  */
00022 int     uart_putchar(char c, FILE *stream);
00023 
00024 /*
00025  * Size of internal line buffer used by uart_getchar().
00026  */
00027 #define RX_BUFSIZE 80
00028 
00029 /*
00030  * Receive one character from the UART.  The actual reception is
00031  * line-buffered, and one character is returned from the buffer at
00032  * each invokation.
00033  */
00034 int     uart_getchar(FILE *stream);

Automatically generated by Doxygen 1.7.3 on Thu May 19 2011.