osd-contiki/cpu/msp430/dev/uart1-putchar.c
2016-05-02 19:13:26 +02:00

13 lines
235 B
C

#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 */