1menu "Echo RS485 Example Configuration"
2
3    config ECHO_UART_PORT_NUM
4        int "UART port number"
5        range 0 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
6        range 0 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
7        default 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
8        default 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
9        help
10            UART communication port number for the example.
11            See UART documentation for available port numbers.
12
13    config ECHO_UART_BAUD_RATE
14        int "UART communication speed"
15        range 1200 115200
16        default 115200
17        help
18            UART communication speed for Modbus example.
19
20    config ECHO_UART_RXD
21        int "UART RXD pin number"
22        range 0 34 if IDF_TARGET_ESP32
23        default 22 if IDF_TARGET_ESP32
24        range 0 46 if IDF_TARGET_ESP32S2
25        default 19 if IDF_TARGET_ESP32S2
26        range 0 48 if IDF_TARGET_ESP32S3
27        range 0 19 if IDF_TARGET_ESP32C3
28        default 5  if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
29        help
30            GPIO number for UART RX pin. See UART documentation for more information
31            about available pin numbers for UART.
32
33    config ECHO_UART_TXD
34        int "UART TXD pin number"
35        range 0 34 if IDF_TARGET_ESP32
36        default 23 if IDF_TARGET_ESP32
37        range 0 46 if IDF_TARGET_ESP32S2
38        default 20 if IDF_TARGET_ESP32S2
39        range 0 48 if IDF_TARGET_ESP32S3
40        range 0 19 if IDF_TARGET_ESP32C3
41        default 4  if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
42        help
43            GPIO number for UART TX pin. See UART documentation for more information
44            about available pin numbers for UART.
45
46    config ECHO_UART_RTS
47        int "UART RTS pin number"
48        range 0 34 if IDF_TARGET_ESP32
49        range 0 46 if IDF_TARGET_ESP32S2
50        range 0 48 if IDF_TARGET_ESP32S3
51        range 0 19 if IDF_TARGET_ESP32C3
52        default 18
53        help
54            GPIO number for UART RTS pin. This pin is connected to
55            ~RE/DE pin of RS485 transceiver to switch direction.
56            See UART documentation for more information about available pin
57            numbers for UART.
58
59endmenu
60