From bcc46df583fed16ecb27da6dd1c8d9f7bf58b874 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 20 Mar 2008 12:50:48 +0100 Subject: [PATCH] Added define for __irq. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-lpc21xx/defines/lpc21xx.h b/arch/arm/mach-lpc21xx/defines/lpc21xx.h index d18cfda..c84f6e4 100644 --- a/arch/arm/mach-lpc21xx/defines/lpc21xx.h +++ b/arch/arm/mach-lpc21xx/defines/lpc21xx.h @@ -380,4 +380,9 @@ #define WDFEED (*((volatile unsigned char *) 0xE0000008)) #define WDTV (*((volatile unsigned long *) 0xE000000C)) +#ifdef __GNUC__ +/* For Keil compatibility */ +#define __irq __attribute__((interrupt)) +#endif + #endif // __LPC21xx_H -- 2.11.4.GIT