From 18626661b669eec654373852ac1d59d96e0e7f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Mon, 17 Apr 2017 17:19:32 -0700 Subject: [PATCH] aerofc: Enable I2C bus 2 Now that UART3 is no longer in use we can use this I2C bus. --- nuttx-configs/aerofc-v1/include/board.h | 3 +++ nuttx-configs/aerofc-v1/nsh/defconfig | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nuttx-configs/aerofc-v1/include/board.h b/nuttx-configs/aerofc-v1/include/board.h index 5d7a5600c4..02f1f6d85d 100644 --- a/nuttx-configs/aerofc-v1/include/board.h +++ b/nuttx-configs/aerofc-v1/include/board.h @@ -266,6 +266,9 @@ #define GPIO_I2C1_SDA GPIO_I2C1_SDA_2 #define GPIO_I2C1_SCL GPIO_I2C1_SCL_2 +#define GPIO_I2C2_SDA GPIO_I2C2_SDA_1 +#define GPIO_I2C2_SCL GPIO_I2C2_SCL_1 + #define GPIO_I2C3_SDA GPIO_I2C3_SDA_1 #define GPIO_I2C3_SCL GPIO_I2C3_SCL_1 diff --git a/nuttx-configs/aerofc-v1/nsh/defconfig b/nuttx-configs/aerofc-v1/nsh/defconfig index 7634826ff4..26d7f10891 100644 --- a/nuttx-configs/aerofc-v1/nsh/defconfig +++ b/nuttx-configs/aerofc-v1/nsh/defconfig @@ -391,7 +391,7 @@ CONFIG_STM32_DMA2=y # CONFIG_STM32_FSMC is not set # CONFIG_STM32_HASH is not set CONFIG_STM32_I2C1=y -# CONFIG_STM32_I2C2 is not set +CONFIG_STM32_I2C2=y CONFIG_STM32_I2C3=y CONFIG_STM32_OTGFS=y # CONFIG_STM32_OTGHS is not set