We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb3fe60 commit 8da5345Copy full SHA for 8da5345
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c
@@ -47,7 +47,7 @@ static inline void handle_interrupt_in(uint32_t port) {
47
LPC_GPIO_TypeDef *port_reg = ((LPC_GPIO_TypeDef *) (LPC_GPIO0_BASE + (port * 0x10000)));
48
49
// Get index of function table from Mask Interrupt Status register
50
- channel = numofbits(port_reg->MIS - 1);
+ channel = numofbits(port_reg->MIS - 1) + (port * 12);
51
52
if (port_reg->MIS & port_reg->IBE) {
53
// both edge, read the level of pin
0 commit comments