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,27 +14,27 @@
|
|||
|
||||
/* pin assignments for 96boards Carbon 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_PA9, STM32F4_PINMUX_FUNC_PA9_USART1_TX},
|
||||
{STM32_PIN_PA10, STM32F4_PINMUX_FUNC_PA10_USART1_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart2))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart2))
|
||||
{STM32_PIN_PA2, STM32F4_PINMUX_FUNC_PA2_USART2_TX},
|
||||
{STM32_PIN_PA3, STM32F4_PINMUX_FUNC_PA3_USART2_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(usart6))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(usart6))
|
||||
{STM32_PIN_PC6, STM32F4_PINMUX_FUNC_PC6_USART6_TX},
|
||||
{STM32_PIN_PC7, STM32F4_PINMUX_FUNC_PC7_USART6_RX},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2c1))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c1))
|
||||
{STM32_PIN_PB6, STM32F4_PINMUX_FUNC_PB6_I2C1_SCL},
|
||||
{STM32_PIN_PB7, STM32F4_PINMUX_FUNC_PB7_I2C1_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(i2c2))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(i2c2))
|
||||
{STM32_PIN_PB10, STM32F4_PINMUX_FUNC_PB10_I2C2_SCL},
|
||||
{STM32_PIN_PB3, STM32F4_PINMUX_FUNC_PB3_I2C2_SDA},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(spi1))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi1))
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PA4, STM32F4_PINMUX_FUNC_PA4_SPI1_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
@ -42,7 +42,7 @@ static const struct pin_config pinconf[] = {
|
|||
{STM32_PIN_PA6, STM32F4_PINMUX_FUNC_PA6_SPI1_MISO},
|
||||
{STM32_PIN_PA7, STM32F4_PINMUX_FUNC_PA7_SPI1_MOSI},
|
||||
#endif
|
||||
#if DT_HAS_NODE(DT_NODELABEL(spi2))
|
||||
#if DT_HAS_NODE_STATUS_OKAY(DT_NODELABEL(spi2))
|
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS
|
||||
{STM32_PIN_PB12, STM32F4_PINMUX_FUNC_PB12_SPI2_NSS},
|
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue