/* Configure channel parameters by channel or operation.Support configure several channels at the same time.  */
void TSC_SetChannelCfg(TSC_Module *TSC_Def, TSC_ChnCfg *ChnCfg, uint32_t Channels)
/* Configure channel parameters by channel or operation.Support configure several channels at the same time.  */
void TSC_SetChannelCfg(TSC_Module *TSC_Def, TSC_ChnCfg *ChnCfg, uint32_t Channels)
{
    if(TSC_Def != TSC)
        return;
    TSC_ConfigInternalResistor(Channels, ChnCfg->TSC_Resistor);
    TSC_ConfigThreshold(Channels, ChnCfg->TSC_Base, ChnCfg->TSC_Delta);
}