equal
deleted
inserted
replaced
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) |