Other Parts Discussed in Thread: ENERGIA
I have error when compile in CCS using TI v20.2.27.LTS but it was ok with GNU v4.6.3 (Energia)
This code fragment is from wiring.c delayMicroseonds() routine from Energia that I am converting from GNU to TI
__asm__ __volatile__(
"L1: nop \n\t"
"dec.w %[us] \n\t"
"jnz L1 \n\t"
:[us] ="r" (us) : "[us]" (us)
);
TI compiler give error #18 expected a ")"
for line with (us) at the end.
It must be different syntax for return augments but I cannot find any references.
Andrew