1 /*
2  * Copyright (c) 2019 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief UART cases header file
10  *
11  * Header file for UART cases
12  */
13 
14 #ifndef __TEST_UART_H__
15 #define __TEST_UART_H__
16 
17 #include <zephyr/drivers/uart.h>
18 #include <zephyr/ztest.h>
19 
20 /* RX and TX pins have to be connected together*/
21 
22 #if DT_NODE_EXISTS(DT_NODELABEL(dut))
23 #define UART_NODE DT_NODELABEL(dut)
24 #elif defined(CONFIG_SOC_SERIES_ESP32C3)
25 #define UART_NODE DT_NODELABEL(uart1)
26 #else
27 #define UART_NODE DT_CHOSEN(zephyr_console)
28 #endif
29 
30 #endif /* __TEST_UART_H__ */
31