I2C speed now 400kHz except on REV4a boards
This commit is contained in:
@@ -324,12 +324,10 @@
|
|||||||
#define I2C_GPIO_AF GPIO_AF_I2C1
|
#define I2C_GPIO_AF GPIO_AF_I2C1
|
||||||
#define I2C_GPIO_PinSource_SCL GPIO_PinSource6
|
#define I2C_GPIO_PinSource_SCL GPIO_PinSource6
|
||||||
#define I2C_GPIO_PinSource_SDA GPIO_PinSource7
|
#define I2C_GPIO_PinSource_SDA GPIO_PinSource7
|
||||||
#if defined(REVPLUS)
|
#if defined(REV4a)
|
||||||
#define I2C_SPEED 400000
|
|
||||||
#elif defined(REV4a)
|
|
||||||
#define I2C_SPEED 100000
|
#define I2C_SPEED 100000
|
||||||
#else
|
#else
|
||||||
#define I2C_SPEED 200000
|
#define I2C_SPEED 400000
|
||||||
#endif
|
#endif
|
||||||
#define I2C_ADDRESS_EEPROM 0xA2
|
#define I2C_ADDRESS_EEPROM 0xA2
|
||||||
#define I2C_ADDRESS_CAT5137 0x5C
|
#define I2C_ADDRESS_CAT5137 0x5C
|
||||||
|
|||||||
Reference in New Issue
Block a user