From d1f77fc9f56e67993938988956957f08d86c0824 Mon Sep 17 00:00:00 2001 From: _--___ <2281979437@qq.com> Date: Thu, 19 Jul 2018 18:09:16 +0800 Subject: [PATCH] clock bug change to APB1 --- bsp/stm32f10x/drivers/stm32f1_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/stm32f10x/drivers/stm32f1_i2c.c b/bsp/stm32f10x/drivers/stm32f1_i2c.c index 5ba942f41..e34cd0c63 100644 --- a/bsp/stm32f10x/drivers/stm32f1_i2c.c +++ b/bsp/stm32f10x/drivers/stm32f1_i2c.c @@ -513,7 +513,7 @@ rt_err_t stm32_i2c_register(I2C_TypeDef *I2C, rt_uint32_t bitrate, if(I2C == I2C1) { pi2c = &stm32_i2c1; - RCC_APB2PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE); + RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE); } else #endif /*RT_USING_I2C1*/ -- GitLab