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
|
@ -14,10 +14,10 @@
|
|||
|
||||
/* pin assignments for Feather STM32F405 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#ifdef CONFIG_UART_3
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart3))
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_USART3_TX},
|
||||
{STM32_PIN_PB11, STM32F4_PINMUX_FUNC_PB11_USART3_RX},
|
||||
#endif /* CONFIG_UART_3 */
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2c1))
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue