/* configure TSI pin mode when charge-transfer sequence is IDLE  */
void tsi_pin_mode_config(uint8_t pin_mode)
/* configure TSI pin mode when charge-transfer sequence is IDLE  */
void tsi_pin_mode_config(uint8_t pin_mode)
{
    if(RESET == (TSI_CTL & TSI_CTL_TSIS)){
        if(TSI_OUTPUT_LOW == pin_mode){
            TSI_CTL &= ~TSI_CTL_PINMOD;
        }else{
            TSI_CTL |= TSI_CTL_PINMOD;
        }
    }
}