You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/12 12:31:17 UTC
[incubator-nuttx] branch master updated: board: nucleo-l432kc: Add
missing i2c_master_s definition
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 830ec0c board: nucleo-l432kc: Add missing i2c_master_s definition
830ec0c is described below
commit 830ec0c37147d70b246676baae88d7edfd552d59
Author: Jeonghyun Kim <ki...@gmail.com>
AuthorDate: Fri Feb 12 18:54:33 2021 +0900
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 33fd124..dbefb07 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;