]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
Added define for __irq.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Mar 2008 11:50:48 +0000 (12:50 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Mar 2008 11:50:48 +0000 (12:50 +0100)
This is done for some compatibility with Keil compiler. For gcc, __irq
cannot be used directly in the function definition, but it has to be
used with declaration, which comes before definition.

arch/arm/mach-lpc21xx/defines/lpc21xx.h

index d18cfda34c96f08111e30d2e9d3cf2b58fca469f..c84f6e459189f176303fa816f939d70b074a021a 100644 (file)
 #define WDFEED         (*((volatile unsigned char *) 0xE0000008))\r
 #define WDTV           (*((volatile unsigned long *) 0xE000000C))\r
 \r
+#ifdef __GNUC__\r
+/* For Keil compatibility */\r
+#define __irq __attribute__((interrupt))\r
+#endif\r
+\r
 #endif  // __LPC21xx_H\r