This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP-MSP430FR2476: Inline assembly

Part Number: LP-MSP430FR2476
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

**Attention** This is a public forum