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:

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

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

Thanks, David

0