dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY
Rename DT_HAS_NODE to DT_HAS_NODE_STATUS_OKAY so the semantics are clear. As going forward DT_HAS_NODE will report if a NODE exists regardless of its status. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
93c5e253a4
commit
fdd85d5ad7
166 changed files with 883 additions and 872 deletions
|
@ -14,11 +14,11 @@
|
|||
|
||||
/* pin assignments for Dragino LSN50 board */
|
||||
static const struct pin_config pinconf[] = {
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart1))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart1))
|
||||
{STM32_PIN_PB6, STM32L0_PINMUX_FUNC_PB6_USART1_TX},
|
||||
{STM32_PIN_PB7, STM32L0_PINMUX_FUNC_PB7_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart2))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
{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