Contiki 2.5
debug-uart.c
1 #include "contiki-conf.h"
2 
3 unsigned int
4 dbg_send_bytes(const unsigned char *s, unsigned int len)
5 {
6  unsigned int i=0;
7  while(s && *s!=0) {
8  if( i >= len) { break; }
9  dbg_putchar(*s++); i++;
10  }
11  return i;
12 }