mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 02:23:49 +01:00
cpu/efm32/gpio: fix deprecated GPIO_IntConfig() call
This commit is contained in:
parent
65d4c046a8
commit
f3d1773483
@ -122,7 +122,7 @@ int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank,
|
|||||||
isr_ctx[_pin_num(pin)].arg = arg;
|
isr_ctx[_pin_num(pin)].arg = arg;
|
||||||
|
|
||||||
/* enable interrupts */
|
/* enable interrupts */
|
||||||
GPIO_IntConfig(_port_num(pin), _pin_num(pin),
|
GPIO_ExtIntConfig(_port_num(pin), _pin_num(pin), _pin_num(pin),
|
||||||
flank & GPIO_RISING, flank & GPIO_FALLING, true);
|
flank & GPIO_RISING, flank & GPIO_FALLING, true);
|
||||||
|
|
||||||
NVIC_ClearPendingIRQ(GPIO_EVEN_IRQn);
|
NVIC_ClearPendingIRQ(GPIO_EVEN_IRQn);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user