+
+static const I2cVT i2c_stm32_vt =
+{
+ .start = i2c_stm32_start,
+ .getc = i2c_stm32_getc,
+ .putc = i2c_stm32_putc,
+ .write = i2c_genericWrite,
+ .read = i2c_genericRead,
+};
+
+static struct I2cHardware i2c_stm32_hw[] =
+{
+ { /* I2C1 */
+ .base = (struct stm32_i2c *)I2C1_BASE,
+ .clk_i2c_en = RCC_APB1_I2C1,
+ .pin_mask = (GPIO_I2C1_SCL_PIN | GPIO_I2C1_SDA_PIN),
+ },
+ { /* I2C2 */
+ .base = (struct stm32_i2c *)I2C2_BASE,
+ .clk_i2c_en = RCC_APB1_I2C2,
+ .pin_mask = (GPIO_I2C2_SCL_PIN | GPIO_I2C2_SDA_PIN),
+ },
+};