>I'm developing a can repeater with lpc2129.I'm testing interrupts and
>primitives before starting with high level. Has someone an exemple of
>swi using under gcc compiler? I just tried with post search but I see
>only the first page.
>thanks in advance
Define SWI handler function:
void f () __attribute__ ((interrupt ("SWI")));
If no extension exists in the compiler, then to call SWI you can use:
#define CALL_SWI() asm volatile ("SWI 0")
See page 224 in http://www.gnuarm.org/pdf/gcc.pdf.
The FreeRTOS.org ARM ports use the SWI, but does not use the parameter. If
you want a more sophisticated example then take a look at
*Now for ARM Cortex-M3!*