Kconfig.projbuild 1.7 KB

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