Kconfig.projbuild 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 || IDF_TARGET_ESP32S3
  5. range 0 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
  6. default 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
  7. default 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
  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. range 0 48 if IDF_TARGET_ESP32S3
  24. range 0 19 if IDF_TARGET_ESP32C3
  25. default 5 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
  26. help
  27. GPIO number for UART RX pin. See UART documentation for more information
  28. about available pin numbers for UART.
  29. config ECHO_UART_TXD
  30. int "UART TXD pin number"
  31. range 0 34 if IDF_TARGET_ESP32
  32. default 23 if IDF_TARGET_ESP32
  33. range 0 46 if IDF_TARGET_ESP32S2
  34. default 20 if IDF_TARGET_ESP32S2
  35. range 0 48 if IDF_TARGET_ESP32S3
  36. range 0 19 if IDF_TARGET_ESP32C3
  37. default 4 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
  38. help
  39. GPIO number for UART TX pin. See UART documentation for more information
  40. about available pin numbers for UART.
  41. config ECHO_UART_RTS
  42. int "UART RTS pin number"
  43. range 0 34 if IDF_TARGET_ESP32
  44. range 0 46 if IDF_TARGET_ESP32S2
  45. range 0 48 if IDF_TARGET_ESP32S3
  46. range 0 19 if IDF_TARGET_ESP32C3
  47. default 18
  48. help
  49. GPIO number for UART RTS pin. This pin is connected to
  50. ~RE/DE pin of RS485 transceiver to switch direction.
  51. See UART documentation for more information about available pin
  52. numbers for UART.
  53. endmenu