File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,8 @@ int I2CSlave::read(void) {
46
46
// The dedicated I2C Slave byte read and byte write functions need to be called
47
47
// from 'common' mbed I2CSlave API for devices that have separate Master and
48
48
// Slave engines such as the lpc812 and lpc1549.
49
- //
50
- // #if defined (TARGET_LPC812) || defined (TARGET_LPC824) || defined (TARGET_LPC1549)
51
- #if defined (TARGET_LPC812)
52
- return i2c_slave_byte_read (&_i2c, 0 );
53
- #else
49
+ // return i2c_slave_byte_read(&_i2c, 0);
54
50
return i2c_byte_read (&_i2c, 0 );
55
- #endif
56
51
}
57
52
58
53
int I2CSlave::write (const char *data, int length) {
@@ -64,12 +59,8 @@ int I2CSlave::write(int data) {
64
59
// from 'common' mbed I2CSlave API for devices that have separate Master and
65
60
// Slave engines such as the lpc812 and lpc1549.
66
61
//
67
- // #if defined (TARGET_LPC812) || defined (TARGET_LPC824) || defined (TARGET_LPC1549)
68
- #if defined (TARGET_LPC812)
69
- return i2c_slave_byte_write (&_i2c, data);
70
- #else
62
+ // return i2c_slave_byte_write(&_i2c, data);
71
63
return i2c_byte_write (&_i2c, data);
72
- #endif
73
64
}
74
65
75
66
void I2CSlave::stop (void ) {
You can’t perform that action at this time.
0 commit comments