1
0
mirror of synced 2024-11-26 03:04:24 +01:00
avr_demo/74hc165_shiftin/uart/uart.h
2012-01-22 16:31:47 +02:00

29 lines
579 B
C

/*
* uart.h
*
* This file is part of Triple-A library:
* https://github.com/tuupola/triple-a
*
* Copyright 2011 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
*/
#ifndef UART_H
#define UART_H
int uart_putchar(char c, FILE *stream);
int uart_getchar(FILE *stream);
void uart_init(void);
/* http://www.ermicro.com/blog/?p=325 */
FILE uart_output = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
FILE uart_input = FDEV_SETUP_STREAM(NULL, uart_getchar, _FDEV_SETUP_READ);
#endif /* UART_H */