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

uart.h

011/*
022* ----------------------------------------------------------------------------
033* "THE BEER-WARE LICENSE" (Revision 42): 044* <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you 055* can do whatever you want with this stuff. If we meet some day, and you think 066* this stuff is worth it, you can buy me a beer in return. Joerg Wunsch 077* ---------------------------------------------------------------------------- 088* 099* Stdio demo, UART declarations 1010* 1111* $Id: uart.h 1008 2005-12-28 21:38:59Z joerg_wunsch $ 1212*/ 1313 1414/* 1515* Perform UART startup initialization. 1616*/ 1717void uart_init(void); 1818 1919/* 2020* Send one character to the UART. 2121*/ 2222int uart_putchar(char c, FILE *stream); 2323 2424/* 2525* Size of internal line buffer used by uart_getchar(). 2626*/ 2727#define RX_BUFSIZE 80 2828 2929/* 3030* Receive one character from the UART. The actual reception is 3131* line-buffered, and one character is returned from the buffer at 3232* each invokation. 3333*/ 3434int uart_getchar(FILE *stream);

FILE struct __file FILE

Definition: stdio.h:277