$treeview $search $mathjax $extrastylesheet
avr-libc  2.0.0
$projectbrief
$projectbrief
$searchbox

AVR Libc Home Page

AVRs

AVR Libc Development Pages

Main Page

User Manual

Library Reference

FAQ

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$
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);
 All Data Structures Files Functions Variables Typedefs Enumerations Defines