I2C: Remove setaddress method
This commit is contained in:
parent
2709652753
commit
ae0a55de53
@ -178,10 +178,6 @@ int i2ccmd_dev(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Set the I2C address */
|
||||
|
||||
I2C_SETADDRESS(dev, addr, 7);
|
||||
|
||||
/* Set up data structures */
|
||||
|
||||
regaddr = 0;
|
||||
|
@ -144,10 +144,9 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
/* Set the frequency and the address (NOTE: Only 7-bit address supported now) */
|
||||
/* Set the iI2C frequency */
|
||||
|
||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
||||
I2C_SETADDRESS(dev, i2ctool->addr, 7);
|
||||
|
||||
/* Loop for the requested number of repititions */
|
||||
|
||||
|
@ -172,10 +172,9 @@ int i2ccmd_set(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
/* Set the frequency and the address (NOTE: Only 7-bit address supported now) */
|
||||
/* Set the I2C frequency */
|
||||
|
||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
||||
I2C_SETADDRESS(dev, i2ctool->addr, 7);
|
||||
|
||||
/* Loop for the requested number of repititions */
|
||||
|
||||
|
@ -174,10 +174,9 @@ int i2ccmd_verf(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
/* Set the frequency and the address (NOTE: Only 7-bit address supported now) */
|
||||
/* Set the I2C frequency */
|
||||
|
||||
I2C_SETFREQUENCY(dev, i2ctool->freq);
|
||||
I2C_SETADDRESS(dev, i2ctool->addr, 7);
|
||||
|
||||
/* Loop for the requested number of repititions */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user