boards: stm32: pinmux: Restore Kconfig control on pinmux (serial)
In order to avoid pin configuration conflicts between peripherals, add CONFIG_SERIAL flag to for each serial pinmux configuration. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
7d03f2f08f
commit
f9d5df3937
76 changed files with 153 additions and 153 deletions
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for Dragino LSN50 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay) && CONFIG_SERIAL
|
||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay) && CONFIG_SERIAL
|
||||
{STM32_PIN_PA2, STM32L0_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32L0_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue