Merge pull request #11720 from benemorius/efm32-gpio-init-int-disable
cpu/efm32/periph_gpio: fix wrong GPIO_IntDisable() in gpio_init_int()
This commit is contained in:
commit
f976aeb1af
@ -115,7 +115,7 @@ int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* just in case, disable the interrupt for this pin */
|
/* just in case, disable the interrupt for this pin */
|
||||||
GPIO_IntDisable(_pin_num(pin));
|
GPIO_IntDisable(_pin_mask(pin));
|
||||||
|
|
||||||
/* store interrupt callback */
|
/* store interrupt callback */
|
||||||
isr_ctx[_pin_num(pin)].cb = cb;
|
isr_ctx[_pin_num(pin)].cb = cb;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user