*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
#define LPC_CT32B_EMR_EMC_SET 2
#define LPC_CT32B_EMR_EMC_TOGGLE 3
+#define isr_decl(name) \
+ void __attribute__ ((weak)) lpc_ ## name ## _isr(void);
+
+isr_decl(nmi)
+isr_decl(hardfault)
+isr_decl(memmanage)
+isr_decl(busfault)
+isr_decl(usagefault)
+isr_decl(svc)
+isr_decl(debugmon)
+isr_decl(pendsv)
+isr_decl(systick)
+
+isr_decl(pin_int0) /* IRQ0 */
+isr_decl(pin_int1)
+isr_decl(pin_int2)
+isr_decl(pin_int3)
+isr_decl(pin_int4) /* IRQ4 */
+isr_decl(pin_int5)
+isr_decl(pin_int6)
+isr_decl(pin_int7)
+
+isr_decl(gint0) /* IRQ8 */
+isr_decl(gint1)
+isr_decl(ssp1)
+isr_decl(i2c)
+
+isr_decl(ct16b0) /* IRQ16 */
+isr_decl(ct16b1)
+isr_decl(ct32b0)
+isr_decl(ct32b1)
+isr_decl(ssp0) /* IRQ20 */
+isr_decl(usart)
+isr_decl(usb_irq)
+isr_decl(usb_fiq)
+
+isr_decl(adc) /* IRQ24 */
+isr_decl(wwdt)
+isr_decl(bod)
+isr_decl(flash)
+
+isr_decl(usb_wakeup)
+
+
#endif /* _LPC_H_ */