mirror of https://github.com/ARMmbed/mbed-os.git
Update I2CSlave.cpp
Removed comments again regarding need for dedicated i2c_slave_byte_read() and i2c_slave_byte_read(). This issue is captured in "I2c - slave should have own write/read functions (#896)"pull/881/head
parent
1e098305ef
commit
3aff0e7c9f
|
@ -43,10 +43,6 @@ int I2CSlave::read(char *data, int length) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int I2CSlave::read(void) {
|
int I2CSlave::read(void) {
|
||||||
// The dedicated I2C Slave byte read and byte write functions need to be called
|
|
||||||
// from 'common' mbed I2CSlave API for devices that have separate Master and
|
|
||||||
// Slave engines such as the lpc812 and lpc1549.
|
|
||||||
// return i2c_slave_byte_read(&_i2c, 0);
|
|
||||||
return i2c_byte_read(&_i2c, 0);
|
return i2c_byte_read(&_i2c, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,11 +51,6 @@ int I2CSlave::write(const char *data, int length) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int I2CSlave::write(int data) {
|
int I2CSlave::write(int data) {
|
||||||
// The dedicated I2C Slave byte read and byte write functions need to be called
|
|
||||||
// from 'common' mbed I2CSlave API for devices that have separate Master and
|
|
||||||
// Slave engines such as the lpc812 and lpc1549.
|
|
||||||
//
|
|
||||||
// return i2c_slave_byte_write(&_i2c, data);
|
|
||||||
return i2c_byte_write(&_i2c, data);
|
return i2c_byte_write(&_i2c, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue