Skip to content

Commit

Permalink
cpu/efm32/gpio: fix deprecated GPIO_IntConfig() call
Browse files Browse the repository at this point in the history
  • Loading branch information
jue89 committed Oct 15, 2022
1 parent 65d4c04 commit f3d1773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/efm32/periph/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ int gpio_init_int(gpio_t pin, gpio_mode_t mode, gpio_flank_t flank,
isr_ctx[_pin_num(pin)].arg = arg;

/* enable interrupts */
GPIO_IntConfig(_port_num(pin), _pin_num(pin),
flank & GPIO_RISING, flank & GPIO_FALLING, true);
GPIO_ExtIntConfig(_port_num(pin), _pin_num(pin), _pin_num(pin),
flank & GPIO_RISING, flank & GPIO_FALLING, true);

NVIC_ClearPendingIRQ(GPIO_EVEN_IRQn);
NVIC_ClearPendingIRQ(GPIO_ODD_IRQn);
Expand Down

0 comments on commit f3d1773

Please sign in to comment.