From c4b4291efd5cc2463658b81424ec048f764b18d2 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 30 Apr 2019 07:21:41 -0600 Subject: [PATCH] arch/arm/src/stm32h7/stm32_i2c.c: Fix I2C4 compilation for stm32h7. --- arch/arm/src/stm32h7/stm32_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32h7/stm32_i2c.c b/arch/arm/src/stm32h7/stm32_i2c.c index 72f1a5df6a..a26154a6b3 100644 --- a/arch/arm/src/stm32h7/stm32_i2c.c +++ b/arch/arm/src/stm32h7/stm32_i2c.c @@ -579,8 +579,8 @@ static struct stm32_i2c_priv_s stm32_i2c3_priv = static const struct stm32_i2c_config_s stm32_i2c4_config = { .base = STM32_I2C4_BASE, - .clk_bit = RCC_APB1LENR_I2C4EN, - .reset_bit = RCC_APB1LRSTR_I2C4RST, + .clk_bit = RCC_APB4ENR_I2C4EN, + .reset_bit = RCC_APB4RSTR_I2C4RST, .scl_pin = GPIO_I2C4_SCL, .sda_pin = GPIO_I2C4_SDA, #ifndef CONFIG_I2C_POLLED