1
0
mirror of synced 2024-11-23 09:44:25 +01:00
avr_demo/tpic6b595_spi/uart/uart.h

24 lines
480 B
C
Raw Normal View History

2011-12-17 18:10:24 +01:00
/*
* Copyright 2011 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
*/
2012-01-13 22:28:32 +01:00
#ifndef UART_H
#define UART_H
2011-12-17 18:10:24 +01:00
2012-01-13 22:28:32 +01:00
int uart_putchar(char c, FILE *stream);
int uart_getchar(FILE *stream);
2011-12-17 18:10:24 +01:00
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);
2012-01-13 22:28:32 +01:00
#endif /* UART_H */