drivers/serial: stm32: Modify Kconfig instance flags

STM32 uart Kconfig instance flags were not following
same naming scheme than other drivers (i2c, spi, ..)

Update driver to use UART_X instead of UART_STM32_PORT_X

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-12-14 16:56:04 +01:00 committed by Kumar Gala
commit b1008ccb02
97 changed files with 299 additions and 300 deletions

View file

@ -14,14 +14,14 @@
/* pin assignments for Dragino LSN50 board */
static const struct pin_config pinconf[] = {
#ifdef CONFIG_UART_STM32_PORT_1
#ifdef CONFIG_UART_1
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
#endif /* CONFIG_UART_STM32_PORT_1 */
#ifdef CONFIG_UART_STM32_PORT_2
#endif /* CONFIG_UART_1 */
#ifdef CONFIG_UART_2
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
#endif /* CONFIG_UART_STM32_PORT_2 */
#endif /* CONFIG_UART_2 */
};
static int pinmux_stm32_init(struct device *port)