/* De-initialize GPIO pin handle. stops operation and releases the software resources used by the handle.  */
int32_t csi_gpio_pin_uninitialize(gpio_pin_handle_t handle)
/* De-initialize GPIO pin handle. stops operation and releases the software resources used by the handle.  */
int32_t csi_gpio_pin_uninitialize(gpio_pin_handle_t handle)
{
    if (handle == NULL) {
        return ERR_GPIO(DRV_ERROR_PARAMETER);
    }
    dw_gpio_pin_priv_t *gpio_pin_priv = (dw_gpio_pin_priv_t *)handle;
    gpio_pin_priv->cb = NULL;
    gpio_irq_disable(handle);
    return 0;
}