Browse Source

aerofc: Enable I2C bus 2

Now that UART3 is no longer in use we can use this I2C bus.
sbg
José Roberto de Souza 8 years ago committed by Lorenz Meier
parent
commit
18626661b6
  1. 3
      nuttx-configs/aerofc-v1/include/board.h
  2. 2
      nuttx-configs/aerofc-v1/nsh/defconfig

3
nuttx-configs/aerofc-v1/include/board.h

@ -266,6 +266,9 @@ @@ -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

2
nuttx-configs/aerofc-v1/nsh/defconfig

@ -391,7 +391,7 @@ CONFIG_STM32_DMA2=y @@ -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

Loading…
Cancel
Save