18 lines
429 B
C
18 lines
429 B
C
/*
|
|
* Copyright 2011 Mika Tuupola
|
|
*
|
|
* Licensed under the MIT license:
|
|
* http://www.opensource.org/licenses/mit-license.php
|
|
*
|
|
*/
|
|
|
|
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);
|