STM32 I2C reset. Add missing GPIO configuration. From Alex D

This commit is contained in:
Gregory Nutt 2014-06-25 16:08:31 -06:00
parent 350fa87fea
commit f00ea6ecf9

View File

@ -2036,6 +2036,9 @@ int up_i2creset(FAR struct i2c_dev_s * dev)
scl_gpio = MKI2C_OUTPUT(priv->config->scl_pin);
sda_gpio = MKI2C_OUTPUT(priv->config->sda_pin);
stm32_configgpio(scl_gpio);
stm32_configgpio(sda_gpio);
/* Let SDA go high */
stm32_gpiowrite(sda_gpio, 1);