gpio_hal_set_intr_type macro
GPIO set interrupt trigger type
Arguments
hal
Context of the HAL layer
gpio_num
GPIO number. If you want to set the trigger type of e.g. of GPIO16, gpio_num should be GPIO_NUM_16 (16);
intr_type
Interrupt type, select from gpio_int_type_t