We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6170c commit 1dfa0a0Copy full SHA for 1dfa0a0
drivers/serial/uart_ns16550.c
@@ -1808,11 +1808,16 @@ static DEVICE_API(uart, uart_ns16550_driver_api) = {
1808
#endif
1809
};
1810
1811
-#define UART_NS16550_IRQ_FLAGS(n) \
1812
- COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, sense), \
1813
- (DT_INST_IRQ(n, sense)), \
+#define UART_NS16550_IRQ_SENSE(n) \
+ COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, sense), \
+ (DT_INST_IRQ(n, sense)), \
1814
(0))
1815
1816
+#define UART_NS16550_IRQ_FLAGS(n) \
1817
+ COND_CODE_1(DT_INST_IRQ_HAS_CELL(n, flags), \
1818
+ (DT_INST_IRQ(n, flags)), \
1819
+ UART_NS16550_IRQ_SENSE)
1820
+
1821
/* IO-port or MMIO based UART */
1822
#define UART_NS16550_IRQ_CONFIG(n) \
1823
static void uart_ns16550_irq_config_func##n(const struct device *dev) \
0 commit comments