boards: nucleo_l476rg: add corrected I2C pin assignments
The L476RG does not use the same I2C instance as the other L4 boards. Correct the pinmux and add the peripheral. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
c416f61974
commit
2705901460
|
@ -28,6 +28,13 @@ config SPI_STM32_INTERRUPT
|
|||
|
||||
endif # SPI
|
||||
|
||||
if I2C
|
||||
|
||||
config I2C_3
|
||||
default y
|
||||
|
||||
endif # SPI
|
||||
|
||||
if PWM
|
||||
|
||||
config PWM_STM32_2
|
||||
|
|
|
@ -54,6 +54,11 @@
|
|||
status = "ok";
|
||||
};
|
||||
|
||||
arduino_i2c: &i2c3 {
|
||||
status = "ok";
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
status = "ok";
|
||||
};
|
||||
|
|
|
@ -27,10 +27,10 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PB10, STM32L4X_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32L4X_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif /* CONFIG_UART_3 */
|
||||
#ifdef CONFIG_I2C_1
|
||||
{STM32_PIN_PB6, STM32L4X_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32L4X_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif /* CONFIG_I2C_1 */
|
||||
#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_PWM_STM32_2
|
||||
{STM32_PIN_PA0, STM32L4X_PINMUX_FUNC_PA0_PWM2_CH1},
|
||||
#endif /* CONFIG_PWM_STM32_2 */
|
||||
|
|
Loading…
Reference in a new issue