Files
atomthreads/ports/avr/uart.h
2017-08-20 19:07:56 +02:00

33 lines
800 B
C

/*
* ----------------------------------------------------------------------------
* "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 2005/12/28 21:38:59 joerg_wunsch Exp $
*/
#include "atom.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Perform UART startup initialization.
*/
int uart_init(uint32_t baudrate);
/*
* Send one character to the UART.
*/
int uart_putchar(char c, FILE *stream);
#ifdef __cplusplus
}
#endif