kerneltest/e32test/iic/iic_psl/spi.cpp
changeset 261 4dbffe5c974e
parent 90 947f0dc9f7a8
equal deleted inserted replaced
260:a1a318fd91af 261:4dbffe5c974e
   240 	TConfigSpiV01* spiPtr = &((*spiBuf)());
   240 	TConfigSpiV01* spiPtr = &((*spiBuf)());
   241 
   241 
   242 	// Valid values for the device ID will depend on the bus configuration
   242 	// Valid values for the device ID will depend on the bus configuration
   243 	//
   243 	//
   244 	// Check that the values for word width, clock speed and clock mode are recognised
   244 	// Check that the values for word width, clock speed and clock mode are recognised
   245 	if((spiPtr->iWordWidth < 0) || (spiPtr->iWordWidth > ESpiWordWidth_16))
   245 	if((spiPtr->iWordWidth < 0) || (spiPtr->iWordWidth > ESpiWordWidth_32))
   246 		{
   246 		{
   247 		SPI_PRINT(("ERROR: DSimulatedIicBusChannelMasterSpi::CheckHdr unrecognised word width identifier %d\n",spiPtr->iWordWidth));
   247 		SPI_PRINT(("ERROR: DSimulatedIicBusChannelMasterSpi::CheckHdr unrecognised word width identifier %d\n",spiPtr->iWordWidth));
   248 		return KErrArgument;
   248 		return KErrArgument;
   249 		}
   249 		}
   250 	if(spiPtr->iClkSpeedHz < 0)
   250 	if(spiPtr->iClkSpeedHz < 0)