Fix putchar include when using IPv4

This commit is contained in:
Jens Dede 2016-05-02 19:13:26 +02:00
parent 0e9234dce6
commit 119291d083
2 changed files with 7 additions and 1 deletions

View File

@ -1,9 +1,12 @@
#include "dev/uart0.h"
#include <stdio.h> #include <stdio.h>
#include "dev/uart0.h"
#ifndef NETSTACK_CONF_WITH_IPV4
/* In case of IPv4: putchar() is defined by the SLIP driver */
int int
putchar(int c) putchar(int c)
{ {
uart0_writeb((char)c); uart0_writeb((char)c);
return c; return c;
} }
#endif /* NETSTACK_CONF_WITH_IPV4 */

View File

@ -1,9 +1,12 @@
#include <stdio.h> #include <stdio.h>
#include "dev/uart1.h" #include "dev/uart1.h"
#ifndef NETSTACK_CONF_WITH_IPV4
/* In case of IPv4: putchar() is defined by the SLIP driver */
int int
putchar(int c) putchar(int c)
{ {
uart1_writeb((char)c); uart1_writeb((char)c);
return c; return c;
} }
#endif /* NETSTACK_CONF_WITH_IPV4 */