I2C: warn when trying to use untested code.

No code change.
This commit is contained in:
Markus Hitter 2016-04-05 21:25:28 +02:00
parent eb21ac7485
commit 0f224afac8
1 changed files with 6 additions and 0 deletions

6
i2c.c
View File

@ -36,6 +36,12 @@
#error Cant be I2C master and slave at the same time.
#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
#define I2C_MODE 1
#else