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:
parent
7415f62891
commit
06c7b9a5bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user