2011-10-05 22:41:19 +02:00
|
|
|
int uart_putchar(char c, FILE *stream);
|
|
|
|
int uart_getchar(FILE *stream);
|
|
|
|
|
|
|
|
void uart_init(void);
|
|
|
|
|
2011-10-09 00:42:27 +02:00
|
|
|
struct rx_ring;
|
|
|
|
struct tx_ring;
|
|
|
|
|
2011-10-05 22:41:19 +02:00
|
|
|
/* 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);
|