From 4d133982271fd063779174d1695e14c7821c6da6 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Thu, 21 Jun 2012 16:04:18 -0400 Subject: I2C: Deprecate I2C_REMAP flag. This is ad-hoc and nonportable. If you really want I2C mapped elsewhere, then mess with the I2C device fields and call afio_remap() yourself. (This is also cleaner for F2). Signed-off-by: Marti Bolivar --- libmaple/include/libmaple/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmaple/include') diff --git a/libmaple/include/libmaple/i2c.h b/libmaple/include/libmaple/i2c.h index c66ebcb..f7821af 100644 --- a/libmaple/include/libmaple/i2c.h +++ b/libmaple/include/libmaple/i2c.h @@ -193,7 +193,7 @@ typedef struct i2c_msg { /* I2C enable options */ #define I2C_FAST_MODE 0x1 // 400 khz #define I2C_DUTY_16_9 0x2 // 16/9 duty ratio -#define I2C_REMAP 0x4 // Use alternate pin mapping +/* Flag 0x4 is reserved; DO NOT USE. */ #define I2C_BUS_RESET 0x8 // Perform a bus reset void i2c_master_enable(i2c_dev *dev, uint32 flags); -- cgit v1.2.3