Merge pull request #1646 from jdede/fix-putchar-ipv4
Fix putchar include when using IPv4
This commit is contained in:
commit
2a1da5dbad
@ -1,9 +1,11 @@
|
||||
#include "dev/uart0.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#if !NETSTACK_CONF_WITH_IPV4
|
||||
/* In case of IPv4: putchar() is defined by the SLIP driver */
|
||||
int
|
||||
putchar(int c)
|
||||
{
|
||||
uart0_writeb((char)c);
|
||||
return c;
|
||||
}
|
||||
#endif /* ! NETSTACK_CONF_WITH_IPV4 */
|
||||
|
@ -1,9 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include "dev/uart1.h"
|
||||
|
||||
#if !NETSTACK_CONF_WITH_IPV4
|
||||
/* In case of IPv4: putchar() is defined by the SLIP driver */
|
||||
int
|
||||
putchar(int c)
|
||||
{
|
||||
uart1_writeb((char)c);
|
||||
return c;
|
||||
}
|
||||
#endif /* ! NETSTACK_CONF_WITH_IPV4 */
|
||||
|
Loading…
Reference in New Issue
Block a user