1
0
Fork 0
i237/src/uart-wrapper.h

16 lines
399 B
C
Raw Normal View History

2016-11-16 00:15:07 +02:00
#ifndef _UART_WRAPPER_H_
#define _UART_WRAPPER_H_
2016-09-26 16:39:07 +03:00
int uart0_putchar(char c, FILE *stream);
int uart0_getchar(FILE *stream);
int uart3_putchar(char c, FILE *stream);
/* http://www.ermicro.com/blog/?p=325 */
FILE uart0_io = FDEV_SETUP_STREAM(uart0_putchar, uart0_getchar, _FDEV_SETUP_RW);
FILE uart3_out = FDEV_SETUP_STREAM(uart3_putchar, NULL, _FDEV_SETUP_WRITE);
2016-09-26 16:39:07 +03:00
2016-11-20 01:03:50 +02:00
#endif /* _UART_WRAPPER_H_ */