Skip to content
Permalink
Browse files

disco_l475_iot1: Enable I2C3

Enable I2C3 on disco_l475_iot1.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information...
ydamigos authored and carlescufi committed Jul 21, 2019
1 parent 710f9e7 commit 80de227a3afdf7271b6b6f1d49416bda01ae9b4f
@@ -32,6 +32,9 @@ config I2C_1
config I2C_2
default y

config I2C_3
default y

endif # I2C

if SPI
@@ -111,6 +111,11 @@
};
};

&i2c3 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};

&spi1 {
status = "okay";
};
@@ -149,6 +149,7 @@ Default Zephyr Peripheral Mapping:
- UART_4 TX/RX : PA0/PA1 (Arduino Serial)
- I2C1 SCL/SDA : PB8/PB9 (Arduino I2C)
- I2C2 SCL/SDA : PB10/PB11 (Sensor I2C bus)
- I2C3 SCL/SDA : PC0/PC1
- SPI1 SCK/MISO/MOSI : PA5/PA6/PA7 (Arduino SPI)
- SPI3 SCK/MISO/MOSI : PC10/PC11/PC12 (BT SPI bus)
- PWM_2_CH1 : PA15
@@ -31,6 +31,10 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PB10, STM32L4X_PINMUX_FUNC_PB10_I2C2_SCL},
{STM32_PIN_PB11, STM32L4X_PINMUX_FUNC_PB11_I2C2_SDA},
#endif /* CONFIG_I2C_2 */
#ifdef CONFIG_I2C_3
{STM32_PIN_PC0, STM32L4X_PINMUX_FUNC_PC0_I2C3_SCL},
{STM32_PIN_PC1, STM32L4X_PINMUX_FUNC_PC1_I2C3_SDA},
#endif /* CONFIG_I2C_3 */
#ifdef CONFIG_SPI_1
{STM32_PIN_PA5, STM32L4X_PINMUX_FUNC_PA5_SPI1_SCK},
{STM32_PIN_PA6, STM32L4X_PINMUX_FUNC_PA6_SPI1_MISO},

0 comments on commit 80de227

Please sign in to comment.
You can’t perform that action at this time.