boards: stm32: Use dt API for serial peripheral configuration
Replace use of Kconfig UART_X symbols by calls to DT API. Clean driver from symbols definitions Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
76313f06db
commit
81f27c2265
146 changed files with 282 additions and 784 deletions
|
@ -15,14 +15,14 @@
|
|||
|
||||
/* pin assignments for NUCLEO-F030R8 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#ifdef CONFIG_UART_1
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart1))
|
||||
{STM32_PIN_PA9, STM32F0_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F0_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif /* CONFIG_UART_1 */
|
||||
#ifdef CONFIG_UART_2
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart2))
|
||||
{STM32_PIN_PA2, STM32F0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif /* CONFIG_UART_2 */
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2c1))
|
||||
{STM32_PIN_PB8, STM32F0_PINMUX_FUNC_PB8_I2C1_SCL},
|
||||
{STM32_PIN_PB9, STM32F0_PINMUX_FUNC_PB9_I2C1_SDA},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue