aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/i2c.h')
-rw-r--r--os/hal/include/i2c.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h
index 5f4b2cc6f..8b057f527 100644
--- a/os/hal/include/i2c.h
+++ b/os/hal/include/i2c.h
@@ -80,7 +80,12 @@ typedef enum {
I2C_MTRANSMIT = 6, /**< Master transmitting. */
I2C_MRECEIVE = 7, /**< Master receiving. */
I2C_MWAIT_TF = 8, /**< Master wait Transmission Finished */
- I2C_MERROR = 9 /**< Error condition. */
+ I2C_MERROR = 9, /**< Error condition. */
+
+ // slave part
+ I2C_SACTIVE = 10,
+ I2C_STRANSMIT = 11,
+ I2C_SRECEIVE = 12,
} i2cstate_t;
#include "i2c_lld.h"