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
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