Remove newlib dependency, include own stdio/string/assert

This commit is contained in:
Harald Welte
2017-02-27 22:58:59 +01:00
parent d52523185f
commit d09829dcc6
8 changed files with 948 additions and 198 deletions

View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include "uart_console.h"
int fputc(int c, FILE *stream)
{
UART_PutChar(c);
return c;
}
int fputs(const char *s, FILE *stream)
{
while (*s != '\0')
UART_PutChar(*s++);
return 0;
}