>Hy guys,
>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
>Alberto
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
http://gandalf.arubi.uni-kl.de/avr_projects/arm_projects/at91sam7s64_example_gamma_20060520.zip.
Regards,
Richard.
http://www.FreeRTOS.org
*Now for ARM Cortex-M3!*