This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

interrupt.c(36): error: #18: expected a ")"

Line 36 is the last line of the asm block below:

	asm (
	"@ MOV R0, %0\n"
	"@ MOV R1, %1\n"
	"@ MOV R2, %2\n"
	"swi 3\n" : : "r" (irq), "r" (isr), "r" (pri)	
	);

I think the code was written for GCC not ARM C.  How should this be written correctly using Keil compiler please

Thanks, David