Harald Welte | d09829d | 2017-02-27 22:58:59 +0100 | [diff] [blame] | 1 | #include <stdio.h> |
2 | #include "uart_console.h" | ||||
3 | |||||
4 | int fputc(int c, FILE *stream) | ||||
5 | { | ||||
6 | UART_PutChar(c); | ||||
7 | return c; | ||||
8 | } | ||||
9 | |||||
10 | int fputs(const char *s, FILE *stream) | ||||
11 | { | ||||
12 | while (*s != '\0') | ||||
13 | UART_PutChar(*s++); | ||||
14 | return 0; | ||||
15 | } |