Fix i2c devices rcc registers

This commit is contained in:
Sebastien Lorquet 2016-10-25 10:53:24 +02:00
parent 1d50259358
commit 9be23d0c76
1 changed files with 4 additions and 4 deletions

View File

@ -356,8 +356,8 @@ struct stm32l4_i2c_priv_s stm32l4_i2c1_priv =
static const struct stm32l4_i2c_config_s stm32l4_i2c2_config =
{
.base = STM32L4_I2C2_BASE,
.clk_bit = RCC_APB1ENR_I2C2EN,
.reset_bit = RCC_APB1RSTR_I2C2RST,
.clk_bit = RCC_APB1ENR1_I2C2EN,
.reset_bit = RCC_APB1RSTR1_I2C2RST,
.scl_pin = GPIO_I2C2_SCL,
.sda_pin = GPIO_I2C2_SDA,
#ifndef CONFIG_I2C_POLLED
@ -386,8 +386,8 @@ struct stm32l4_i2c_priv_s stm32l4_i2c2_priv =
static const struct stm32l4_i2c_config_s stm32l4_i2c3_config =
{
.base = STM32L4_I2C3_BASE,
.clk_bit = RCC_APB1ENR_I2C3EN,
.reset_bit = RCC_APB1RSTR_I2C3RST,
.clk_bit = RCC_APB1ENR1_I2C3EN,
.reset_bit = RCC_APB1RSTR1_I2C3RST,
.scl_pin = GPIO_I2C3_SCL,
.sda_pin = GPIO_I2C3_SDA,
#ifndef CONFIG_I2C_POLLED