How to schedule interrupts from GPIO (P19) associated with the I2C?

Hello. I tested the i2c_gpio_test application and it works well. But now I want to do the routine care to interrupt with a pulse counter for one of the multiplexed GPIO pins to I2C (pin 19). What is the solution? Please help me!!!

Thanks for everything

Where did you get i2c_gpio_test application ? I do not see it as part of the kit.
Now as far as your question, then you nieed to modify the ISR (Interrupt Service Routine) that is called when particular IRQ is triggered If this example uses GPIO module, then the ISR is in gpio.c file of that module and is gpio_irq_handler() function.