I2C: warn when trying to use untested code.
No code change.
This commit is contained in:
parent
eb21ac7485
commit
0f224afac8
6
i2c.c
6
i2c.c
|
|
@ -36,6 +36,12 @@
|
||||||
#error Cant be I2C master and slave at the same time.
|
#error Cant be I2C master and slave at the same time.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined I2C_SLAVE_MODE || defined I2C_READ_SUPPORT || \
|
||||||
|
defined I2C_EEPROM_SUPPORT
|
||||||
|
#warning These portions of the code are untested and need work.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef I2C_SLAVE_MODE
|
#ifdef I2C_SLAVE_MODE
|
||||||
#define I2C_MODE 1
|
#define I2C_MODE 1
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue