mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-11 21:55:41 +00:00
Added some replacements for newlib's stdout. Added missing startup code. Some minor fixes.
27 lines
287 B
C
27 lines
287 B
C
#include <stdio.h>
|
|
#include <debug-uart.h>
|
|
#include <string.h>
|
|
|
|
#undef putchar
|
|
#undef putc
|
|
|
|
int
|
|
putchar(int c)
|
|
{
|
|
dbg_putchar(c);
|
|
return c;
|
|
}
|
|
|
|
int
|
|
putc(int c, FILE *f)
|
|
{
|
|
dbg_putchar(c);
|
|
return c;
|
|
}
|
|
|
|
int
|
|
__sp(struct _reent *_ptr, int c, FILE *_p) {
|
|
dbg_putchar(c);
|
|
return c;
|
|
}
|