mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Revision:
93:80910ff1aebe
Parent:
35:371630885ad6
Child:
250:a49055e7a707
--- a/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c	Mon Feb 17 16:15:17 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c	Tue Feb 18 10:30:06 2014 +0000
@@ -47,7 +47,7 @@
     LPC_GPIO_TypeDef *port_reg = ((LPC_GPIO_TypeDef *) (LPC_GPIO0_BASE + (port * 0x10000)));
     
     // Get index of function table from Mask Interrupt Status register
-    channel = numofbits(port_reg->MIS - 1);
+    channel = numofbits(port_reg->MIS - 1) + (port * 12);
     
     if (port_reg->MIS & port_reg->IBE) {
         // both edge, read the level of pin