/* This function is used to register gpio interrupt.  */
void tls_gpio_isr_register(enum tls_io_name gpio_pin, tls_gpio_irq_callback callback, void *arg)
/* This function is used to register gpio interrupt.  */
void tls_gpio_isr_register(enum tls_io_name gpio_pin, tls_gpio_irq_callback callback, void *arg)
{
    gpio_context[gpio_pin].callback = callback;
    gpio_context[gpio_pin].arg = arg;
}