ISR syntax with ARM-GCC

Viewed 2727

The demo code on the web for defining an ISR for ARM is generally this:

__irq void ISRFunc (void);

Using ARM-GCC, this gives syntax errors on compile, I've tried obvious variants like _irq but they all have the same problem. Some google references state that you don't need to specify the function as an ISR, i.e. void ISRFunc(...) will also work. However, I'm having trouble getting my programs to run, so it would help a lot if someone could confirm (a) is the type specifier __irq (or equivalent) required, and (b) what should it be to avoid compile errors.

Thanks for any information.

1 Answers
Related