aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-20 16:28:24 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-22 14:06:09 -0400
commit53b77e1ef202191fb398092ca1d5d10b2ad602bb (patch)
tree7a5cbaf68b05e623c3f6f991851d904f73b80cc1 /libmaple
parent9e08625d03acdef8dd2007cdb9fc203a074240b2 (diff)
downloadlibrambutan-53b77e1ef202191fb398092ca1d5d10b2ad602bb.tar.gz
librambutan-53b77e1ef202191fb398092ca1d5d10b2ad602bb.zip
I2C: I don't think 10-bit addressing works.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/i2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmaple/i2c.c b/libmaple/i2c.c
index 5c0d5e4..451643e 100644
--- a/libmaple/i2c.c
+++ b/libmaple/i2c.c
@@ -105,6 +105,9 @@ enum {
* @param dev I2C device
*/
void _i2c_irq_handler(i2c_dev *dev) {
+ /* WTFs:
+ * - Where is I2C_MSG_10BIT_ADDR handled?
+ */
i2c_msg *msg = dev->msg;
uint8 read = msg->flags & I2C_MSG_READ;