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

Using PC-Lint on ARM7 - LPC2148

I'm having an issue with compiling with Lint. I get an ERROR 10 on interrupt definitions, but it compiles fine normally under Keil uVision.

// C file

void increment_timers(void) __irq
{ }

// header file

void increment_timers(void) __irq;

(391,28) - Expecting '{'

Line 391 is the line in the header file - above

Gimpel has been unable to find the problem. Any help would be appreciated. Thanks.

Sutton Mehaffey

Parents
  • Hi,

    use this in the header file:

    #ifdef _lint
    // PCLint does not know about __irq
    #define __irq
    #endif

    There is also a "gobbling" mechanism (_gobble) for use in the config file, but this seems not to work reliably.

    Martin Unger

Reply
  • Hi,

    use this in the header file:

    #ifdef _lint
    // PCLint does not know about __irq
    #define __irq
    #endif

    There is also a "gobbling" mechanism (_gobble) for use in the config file, but this seems not to work reliably.

    Martin Unger

Children
No data