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:
Erwan Gouriou 2020-04-16 14:15:44 +02:00 committed by Kumar Gala
commit 81f27c2265
146 changed files with 282 additions and 784 deletions

View file

@ -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},