Neil Wyper wrote:

On 9/12/06, ozzloy <[email protected]> wrote:
i am trying to convert code written for the IAR compiler to the msp430-gcc
on windows.
right now it is complaining about this line:
__interrupt void ISRTimerA0 (void)
IntService.c:11: syntax error before "void"
i've read the following link.  it's not enough information for me though.
where is there more thorough documentation?
http://mspgcc.sourceforge.net/faq/x55.html
i am a newb at this, so anything at all will be useful.
thank you.

With GCC, you need to use a line like:
interrupt (TIMERA0_VECTOR) ISRTimerA0 (void)

Also, you need  "#include <signal.h>" for the definition of the
"interrupt" macro, and "#include <io.h>" for the vector definitions.
We started working a little way towards cross-compiler compatibility. If you include "isr_compat.h" from our GCC distribution you can start the above interrupt service routine with:

   ISR(TIMERA0, ISRTimerA0)

and it will work with GCC, IAR, Quadravox and CCE.

Steve





Reply via email to