boards: arm: nucleo_f030r8: add I2C1 and I2C2 pinmux
Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
This commit is contained in:
parent
ce3b2edef3
commit
007f2e0fda
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@ static const struct pin_config pinconf[] = {
|
||||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||||
#endif /* CONFIG_UART_STM32_PORT_2 */
|
#endif /* CONFIG_UART_STM32_PORT_2 */
|
||||||
|
#ifdef CONFIG_I2C_1
|
||||||
|
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||||
|
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||||
|
#endif /* CONFIG_I2C_1 */
|
||||||
|
#ifdef CONFIG_I2C_2
|
||||||
|
{STM32_PIN_PA11, STM32F0_PINMUX_FUNC_PA11_I2C2_SCL},
|
||||||
|
{STM32_PIN_PA12, STM32F0_PINMUX_FUNC_PA12_I2C2_SDA},
|
||||||
|
#endif /* CONFIG_I2C_2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int pinmux_stm32_init(struct device *port)
|
static int pinmux_stm32_init(struct device *port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue