Hi there.
The routine below, taken from the mspgcc manual, compiles with msp430-gcc.
static void __inline__ brief_pause(register unsigned int n)
{
__asm__ __volatile__ (
"1:\n\t"
"dec %[n]\n\t"
"jne 1b"
: [n] "+r"(n));
}
However, when I include it in a TinyOS program, ncc gives me
syntax error before `['
What gives?
I have no problems with basic inline assembly in TinyOS programs.
Thanks much!
-agurcu
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help