/* De-initialize TIMER Interface. stops operation and releases the software resources used by the interface.  */
int32_t csi_timer_uninitialize(timer_handle_t handle)
/* De-initialize TIMER Interface. stops operation and releases the software resources used by the interface.  */
int32_t csi_timer_uninitialize(timer_handle_t handle)
{
    TIMER_NULL_PARAM_CHK(handle);
    dw_timer_priv_t *timer_priv = (dw_timer_priv_t *)handle;
    dw_timer_reg_t *addr = (dw_timer_reg_t *)(timer_priv->base);
    timer_deactive_control(addr);
    timer_priv->cb_event = NULL;
    drv_nvic_disable_irq(timer_priv->irq);
    return 0;
}