initial mc1322x commit
based on commit aac3a355451d899f02737f2907af8c874ee4feba of git://git.devl.org/git/malvira/contiki-mc1322x.git
This commit is contained in:
parent
a453acd325
commit
1145fa9ba9
23 changed files with 1782 additions and 0 deletions
12
cpu/mc1322x/debug-uart.c
Normal file
12
cpu/mc1322x/debug-uart.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "contiki-conf.h"
|
||||
|
||||
unsigned int
|
||||
dbg_send_bytes(const unsigned char *s, unsigned int len)
|
||||
{
|
||||
unsigned int i=0;
|
||||
while(s && *s!=0) {
|
||||
if( i >= len) { break; }
|
||||
dbg_putchar(*s++); i++;
|
||||
}
|
||||
return i;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue