From f40cd8b718ebf4044fd722136b72f7dbbece96ef Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Tue, 13 Apr 2021 15:20:36 +0800 Subject: [PATCH] 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 --- drivers/i2c/i2c_ll_stm32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/i2c_ll_stm32.c b/drivers/i2c/i2c_ll_stm32.c index 1fb5ec8810f..de511d3311d 100644 --- a/drivers/i2c/i2c_ll_stm32.c +++ b/drivers/i2c/i2c_ll_stm32.c @@ -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 */