drivers: uart_nrfx_uart: Fix incorrect uses of DT_NODE_HAS_PROP
Values of boolean DT properties need to be checked with DT_PROP(), not DT_NODE_HAS_PROP(). Fix two such incorrect calls in the nRF UART driver. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
9777ba7354
commit
c18c5cabf1
1 changed files with 2 additions and 2 deletions
|
@ -33,11 +33,11 @@
|
||||||
#define BAUDRATE PROP(current_speed)
|
#define BAUDRATE PROP(current_speed)
|
||||||
|
|
||||||
#ifdef CONFIG_PINCTRL
|
#ifdef CONFIG_PINCTRL
|
||||||
#define DISABLE_RX HAS_PROP(disable_rx)
|
#define DISABLE_RX PROP(disable_rx)
|
||||||
#else
|
#else
|
||||||
#define DISABLE_RX !HAS_PROP(rx_pin)
|
#define DISABLE_RX !HAS_PROP(rx_pin)
|
||||||
#endif /* CONFIG_PINCTRL */
|
#endif /* CONFIG_PINCTRL */
|
||||||
#define HW_FLOW_CONTROL_AVAILABLE HAS_PROP(hw_flow_control)
|
#define HW_FLOW_CONTROL_AVAILABLE PROP(hw_flow_control)
|
||||||
|
|
||||||
#define IRQN DT_INST_IRQN(0)
|
#define IRQN DT_INST_IRQN(0)
|
||||||
#define IRQ_PRIO DT_INST_IRQ(0, priority)
|
#define IRQ_PRIO DT_INST_IRQ(0, priority)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue