200kHz on non REVPLUS boards

This commit is contained in:
bsongis
2015-05-31 16:08:17 +02:00
parent d3b55e8ad6
commit 6682d0c6d3
2 changed files with 20 additions and 17 deletions
+5
View File
@@ -324,6 +324,11 @@
#define I2C_GPIO_AF GPIO_AF_I2C1
#define I2C_GPIO_PinSource_SCL GPIO_PinSource6
#define I2C_GPIO_PinSource_SDA GPIO_PinSource7
#if defined(REVPLUS)
#define I2C_SPEED 400000
#else
#define I2C_SPEED 200000
#endif
#define I2C_ADDRESS_EEPROM 0xA2
#define I2C_ADDRESS_CAT5137 0x5C
#define I2C_FLASH_PAGESIZE 64