static I32S Tcc353xI2cSetup(I32S _moduleIndex)
{
	if (_moduleIndex >= 2) {
		TcpalPrintErr((I08S *) "Not supported, moduleidx=%d\n",
			      _moduleIndex);
		return TCC353X_RETURN_FAIL;
	}

	TcpalI2cClient = TCC_GET_I2C_DRIVER();	
	return TCC353X_RETURN_SUCCESS;
}
예제 #2
0
static I32S Tcc353xI2cSetup(I32S _moduleIndex)
{
#if !defined (_TCSPI_ONLY_)
	if (_moduleIndex >= 2) {
		TcpalPrintErr((I08S *) "[dtv][tcc3536][error] Not supported, moduleidx=%d\n",
			      _moduleIndex);
		return TCC353X_RETURN_FAIL;
	}

	TcpalI2cClient = TCC_GET_I2C_DRIVER();	
#endif
	return TCC353X_RETURN_SUCCESS;
}