1
0
Fork 0
i237/src/uart_wrap.h

16 lines
402 B
C
Raw Normal View History

2016-11-20 00:51:04 +02:00
#ifndef _UART_WRAP_H_
#define _UART_WRAP_H_
2016-11-07 01:42:18 +02:00
int uart0_putc_wrap(char c, FILE *stream);
int uart0_getc_wrap(FILE *stream);
int uart3_putc_wrap(char c, FILE *stream);
/* http://www.ermicro.com/blog/?p=325 */
FILE uart0_io = FDEV_SETUP_STREAM(uart0_putc_wrap, uart0_getc_wrap, _FDEV_SETUP_RW);
FILE uart3_out = FDEV_SETUP_STREAM(uart3_putc_wrap, NULL, _FDEV_SETUP_WRITE);
2016-11-20 00:51:04 +02:00
#endif /* _UART_WRAP_H_ */