diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-01-26 22:36:12 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-01-26 22:36:12 +0000 |
commit | 9babeb847e50141bb378b77e987d8bc25c33a6d1 (patch) | |
tree | e05c490f820a4cf4713f3c2a0ab21a25ce0c6eec /os/hal/include/i2c.h | |
parent | 9c45802837b9053bbe32a8c8d5688cbf8c5d2706 (diff) | |
download | ChibiOS-9babeb847e50141bb378b77e987d8bc25c33a6d1.tar.gz ChibiOS-9babeb847e50141bb378b77e987d8bc25c33a6d1.tar.bz2 ChibiOS-9babeb847e50141bb378b77e987d8bc25c33a6d1.zip |
I2C. Rewriting low level driver to handle IRQs and DMA
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2687 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/i2c.h')
-rw-r--r-- | os/hal/include/i2c.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/os/hal/include/i2c.h b/os/hal/include/i2c.h index 73bab57f4..e93f2249c 100644 --- a/os/hal/include/i2c.h +++ b/os/hal/include/i2c.h @@ -61,10 +61,13 @@ typedef enum { I2C_UNINIT = 0, /**< Not initialized. */
I2C_STOP = 1, /**< Stopped. */
I2C_READY = 2, /**< Ready. */
- I2C_MREADY = 3, /**< START and address sent. */
- I2C_MTRANSMIT = 4, /**< Master transmitting. */
- I2C_MRECEIVE = 5, /**< Master receiving. */
- I2C_MERROR = 6 /**< Error condition. */
+
+ I2C_MACTIVE = 3, /**< START condition sent. */
+ I2C_MTXREADY = 4, /**< address sent when tx-flag set. */
+ I2C_MTRANSMIT = 5, /**< Master transmitting. */
+
+ I2C_MRECEIVE = 6, /**< Master receiving. */
+ I2C_MERROR = 7 /**< Error condition. */
} i2cstate_t;
#include "i2c_lld.h"
|