TEST

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

Committer:
wwwarunraj
Date:
Sun Apr 19 11:19:57 2020 +0000
Revision:
4:291477e8690d
Parent:
1:f60eafbf009a
19/04

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gmehmet 1:f60eafbf009a 1 diff --git a/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c b/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c
gmehmet 1:f60eafbf009a 2 index 8a9e7bb42..e5fcb4b6f 100644
gmehmet 1:f60eafbf009a 3 --- a/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c
gmehmet 1:f60eafbf009a 4 +++ b/targets/TARGET_Maxim/TARGET_MAX32630/gpio_irq_api.c
gmehmet 1:f60eafbf009a 5 @@ -118,7 +118,12 @@ int gpio_irq_init(gpio_irq_t *obj, PinName name, gpio_irq_handler handler, uint3
gmehmet 1:f60eafbf009a 6
gmehmet 1:f60eafbf009a 7 /* enable the requested interrupt */
gmehmet 1:f60eafbf009a 8 MXC_GPIO->inten[port] |= (1 << pin);
gmehmet 1:f60eafbf009a 9 - NVIC_EnableIRQ((IRQn_Type)((uint32_t)GPIO_P0_IRQn + port));
gmehmet 1:f60eafbf009a 10 + if (port >= 7) {
gmehmet 1:f60eafbf009a 11 + NVIC_EnableIRQ((IRQn_Type)((uint32_t)GPIO_P7_IRQn + (port - 7)));
gmehmet 1:f60eafbf009a 12 + } else {
gmehmet 1:f60eafbf009a 13 + NVIC_EnableIRQ((IRQn_Type)((uint32_t)GPIO_P0_IRQn + port));
gmehmet 1:f60eafbf009a 14 + }
gmehmet 1:f60eafbf009a 15 +
gmehmet 1:f60eafbf009a 16
gmehmet 1:f60eafbf009a 17 return 0;
gmehmet 1:f60eafbf009a 18 }