Contiki 2.6

debug-uart.c

00001 #include "contiki-conf.h"
00002 
00003 unsigned int
00004 dbg_send_bytes(const unsigned char *s, unsigned int len)
00005 {
00006         unsigned int i=0;
00007         while(s && *s!=0) {
00008                 if( i >= len) { break; }
00009                 dbg_putchar(*s++); i++;
00010         }
00011         return i;
00012 }