diff options
author | Barry Carter <barry.carter@robotfuzz.com> | 2012-09-05 00:08:10 +0100 |
---|---|---|
committer | Barry Carter <barry.carter@robotfuzz.com> | 2012-09-05 00:08:10 +0100 |
commit | 0d8f8210e5decb4870f77b5cd0e5325cb803a3af (patch) | |
tree | fdbe3f9a4886dd6d7bc452949a28f46c00efff42 /libmaple/include | |
parent | 576457f5477597c3bc88f06cbae01c01a459c32e (diff) | |
download | librambutan-0d8f8210e5decb4870f77b5cd0e5325cb803a3af.tar.gz librambutan-0d8f8210e5decb4870f77b5cd0e5325cb803a3af.zip |
Added I2C slave echo example in examples folder. Using another maple, write a byte and then read.
Slight tidy up.
Reformatted CREDITS file to be in correct order.
Added a note about buffer overrun
Signed-off-by:- Barry Carter <barry.carter@gmail.com>
Diffstat (limited to 'libmaple/include')
-rw-r--r-- | libmaple/include/libmaple/i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/include/libmaple/i2c.h b/libmaple/include/libmaple/i2c.h index 5a9da58..fbb4c09 100644 --- a/libmaple/include/libmaple/i2c.h +++ b/libmaple/include/libmaple/i2c.h @@ -210,6 +210,7 @@ typedef struct i2c_msg { #define I2C_SLAVE_DUAL_ADDRESS 0x40 // Enable the dual slave address scheme #define I2C_SLAVE_GENERAL_CALL 0x80 // Enable the general call on address 0x00 void i2c_master_enable(i2c_dev *dev, uint32 flags); +void i2c_slave_enable(i2c_dev *dev, uint32 flags); #define I2C_ERROR_PROTOCOL (-1) #define I2C_ERROR_TIMEOUT (-2) |