drivers/i2c: Reset i2c of STM32F1 series to enter master mode properly

Reset the I2C of the STM32F1 series to enter master mode properly.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2021-04-13 15:20:36 +08:00 committed by Anas Nashif
parent c22df17be3
commit f40cd8b718
1 changed files with 2 additions and 2 deletions

View File

@ -241,9 +241,9 @@ static int i2c_stm32_init(const struct device *dev)
}
#endif /* CONFIG_SOC_SERIES_STM32F3X) || CONFIG_SOC_SERIES_STM32F0X */
#if defined(CONFIG_SOC_STM32F103X8) || defined(CONFIG_SOC_STM32F103XB)
#if defined(CONFIG_SOC_SERIES_STM32F1X)
/*
* Force i2c reset for STM32 (F101X8/B, F102X8/B), F103X8/B.
* Force i2c reset for STM32F1 series.
* So that they can enter master mode properly.
* Issue described in ES096 2.14.7
*/