/* This function stop a smartcard timer of specified smartcard module.  */
void SC_StopTimer(SC_T *sc, uint32_t u32TimerNum)
/* This function stop a smartcard timer of specified smartcard module.  */
void SC_StopTimer(SC_T *sc, uint32_t u32TimerNum)
{
    while(sc->ALTCTL & SC_ALTCTL_SYNC_Msk)
    {
        ;
    }
    if(u32TimerNum == 0UL)
    {
        sc->ALTCTL &= ~SC_ALTCTL_CNTEN0_Msk;
    }
    else if(u32TimerNum == 1UL)
    {
        sc->ALTCTL &= ~SC_ALTCTL_CNTEN1_Msk;
    }
    else
    {
        sc->ALTCTL &= ~SC_ALTCTL_CNTEN2_Msk;
    }
}