1
0
mirror of synced 2024-11-22 09:14:24 +01:00
avr_demo/blog/simple_usart/uart.h

10 lines
292 B
C
Raw Normal View History

void uart_putchar(char c, FILE *stream);
char 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);