Merged in david_s5/nuttx/master_f7_i2cfix (pull request #664)

stm32f7:I2C reset Configure I2C pins as GPIO output

Pins were reset to inputs in the deinit. This resets
   them to outputs.

Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
David Sidrane 2018-06-27 18:35:34 +00:00 committed by GregoryN
parent 7415f62891
commit 06c7b9a5bc

View File

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