/* This function stop all smartcard timer of specified smartcard module.  */
void SC_StopAllTimer(SC_T *sc)
/* This function stop all smartcard timer of specified smartcard module.  */
void SC_StopAllTimer(SC_T *sc)
{
    while (sc->ALTCTL & SC_ALTCTL_SYNC_Msk)
    {
        ;
    }
    sc->ALTCTL &= ~(SC_ALTCTL_CNTEN0_Msk | SC_ALTCTL_CNTEN1_Msk | SC_ALTCTL_CNTEN2_Msk);
}