arch/arm/src/stm32h7/stm32_i2c.c: Fix I2C4 compilation for stm32h7.

This commit is contained in:
Jukka Laitinen 2019-04-30 07:21:41 -06:00 committed by Gregory Nutt
parent 98162e268f
commit c4b4291efd

View File

@ -579,8 +579,8 @@ static struct stm32_i2c_priv_s stm32_i2c3_priv =
static const struct stm32_i2c_config_s stm32_i2c4_config = static const struct stm32_i2c_config_s stm32_i2c4_config =
{ {
.base = STM32_I2C4_BASE, .base = STM32_I2C4_BASE,
.clk_bit = RCC_APB1LENR_I2C4EN, .clk_bit = RCC_APB4ENR_I2C4EN,
.reset_bit = RCC_APB1LRSTR_I2C4RST, .reset_bit = RCC_APB4RSTR_I2C4RST,
.scl_pin = GPIO_I2C4_SCL, .scl_pin = GPIO_I2C4_SCL,
.sda_pin = GPIO_I2C4_SDA, .sda_pin = GPIO_I2C4_SDA,
#ifndef CONFIG_I2C_POLLED #ifndef CONFIG_I2C_POLLED