/* This macro is used to disable input channel interrupt.  */
void ECAP_DisableINT(ECAP_T *ecap, uint32_t u32Mask)
/* This macro is used to disable input channel interrupt.  */
void ECAP_DisableINT(ECAP_T *ecap, uint32_t u32Mask)
{
    ecap->CTL0 &= ~(u32Mask);
    if(ecap == (ECAP_T*)ECAP0)
    {
        NVIC_DisableIRQ((IRQn_Type)ECAP0_IRQn);
    }
    else
    {
        NVIC_DisableIRQ((IRQn_Type)ECAP1_IRQn);
    }
}