/*
 * ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <joerg@FreeBSD.ORG> wrote this file.  As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return.        Joerg Wunsch
 * ----------------------------------------------------------------------------
 *
 * Stdio demo, UART declarations
 *
 * $Id: uart.h,v 1.1.2.1 2005/12/28 22:35:08 joerg_wunsch Exp $
 */


/* Performs UART startup initialization. */
void usart_init(unsigned int baud);

/* Sends one character to the UART. */
int usart_putchar(char c, FILE *stream);

/* Size of internal line buffer used by uart_getchar(). */
#define RX_BUFSIZE 80

/* Receives one character from the UART */
int usart_getchar(FILE *stream);
