From 830ec0c37147d70b246676baae88d7edfd552d59 Mon Sep 17 00:00:00 2001 From: Jeonghyun Kim Date: Fri, 12 Feb 2021 18:54:33 +0900 Subject: [PATCH] board: nucleo-l432kc: Add missing i2c_master_s definition i2c_master_s definition of each i2c device is necessary but it's missing on past commit. so correct it. --- boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c index 33fd1242b8c..dbefb07ddc9 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c +++ b/boards/arm/stm32l4/nucleo-l432kc/src/stm32_appinit.c @@ -123,8 +123,11 @@ int board_app_initialize(uintptr_t arg) #ifdef HAVE_RTC_DRIVER FAR struct rtc_lowerhalf_s *rtclower; #endif -#ifdef HAVE_I2C_DRIVER - FAR struct i2c_master_s *i2c; +#ifdef CONFIG_STM32L4_I2C1 + FAR struct i2c_master_s *i2c1; +#endif +#ifdef CONFIG_STM32L4_I2C3 + FAR struct i2c_master_s *i2c3; #endif #ifdef CONFIG_SENSORS_QENCODER int index;