mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-30 15:30:30 +00:00
Fix putchar include when using IPv4
This commit is contained in:
parent
0e9234dce6
commit
119291d083
@ -1,9 +1,12 @@
|
||||
#include "dev/uart0.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
|
||||
putchar(int c)
|
||||
{
|
||||
uart0_writeb((char)c);
|
||||
return c;
|
||||
}
|
||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
||||
|
@ -1,9 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include "dev/uart1.h"
|
||||
|
||||
#ifndef 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