gpio_set_intr_type(pinX, GPIO_INTR_DISABLE) vs. gpio_intr_disable(pinX);

samsam
Posts: 50
Joined: Sun Jun 04, 2017 5:26 pm

gpio_set_intr_type(pinX, GPIO_INTR_DISABLE) vs. gpio_intr_disable(pinX);

Postby samsam » Sat Jun 24, 2017 2:01 am

Assunming the gpio_set_intr_type() was set for any interrupt type other than GPIO_INTR_DISABLE and the interrupt was enabled for a pin in interest. Now if I want to disable (temporary) the interrupt on this pin:
is gpio_set_intr_type(pinX, GPIO_INTR_DISABLE); enough
or have to add and gpio_intr_disable(pinX); ?
Thanks

Who is online

Users browsing this forum: No registered users and 116 guests