mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
6523d912f2
Update freemodbus component file esp-idf/components/freemodbus/port/portserial.c to remove UART mode settings; Move UART mode settings into esp-idf/examples/protocols/modbus_slave/main/freemodbus.c Move UART pin settings from Component config into example Kconfig.projbuild file Move setup of UART port pins from freemodbus component into example file TW#27721 Closes https://github.com/espressif/esp-idf/issues/2784#issuecomment-443600157
28 lines
705 B
Plaintext
28 lines
705 B
Plaintext
menu "Modbus Slave Example Configuration"
|
|
|
|
config MB_UART_RXD
|
|
int "UART RXD pin number"
|
|
range 0 34
|
|
default 22
|
|
help
|
|
GPIO number for UART RX pin. See UART documentation for more information
|
|
about available pin numbers for UART.
|
|
|
|
config MB_UART_TXD
|
|
int "UART TXD pin number"
|
|
range 0 34
|
|
default 23
|
|
help
|
|
GPIO number for UART TX pin. See UART documentation for more information
|
|
about available pin numbers for UART.
|
|
|
|
config MB_UART_RTS
|
|
int "UART RTS pin number"
|
|
range 0 34
|
|
default 18
|
|
help
|
|
GPIO number for UART RTS pin. This pin is connected to
|
|
~RE/DE pin of RS485 transceiver to switch direction.
|
|
|
|
endmenu
|