AVR-LibC  2.3.0git
Standard C library for AVR-GCC
 

AVR-LibC Documen­tation

AVR-LibC Development Pages

Main Page

User Manual

Library Refe­rence

FAQ

Example Projects

File List

Index

Loading...
Searching...
No Matches
uart.h
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <joerg@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Joerg Wunsch
7 * ----------------------------------------------------------------------------
8 *
9 * Stdio demo, UART declarations
10 */
11
12/*
13 * Perform UART startup initialization.
14 */
15void uart_init(void);
16
17/*
18 * Send one character to the UART.
19 */
20int uart_putchar(char c, FILE *stream);
21
22/*
23 * Size of internal line buffer used by uart_getchar().
24 */
25#define RX_BUFSIZE 80
26
27/*
28 * Receive one character from the UART. The actual reception is
29 * line-buffered, and one character is returned from the buffer at
30 * each invocation.
31 */
32int uart_getchar(FILE *stream);
struct __file FILE
Definition: stdio.h:281