Kconfig.projbuild 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. menu "Echo RS485 Example Configuration"
  2. orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
  3. config ECHO_UART_PORT_NUM
  4. int "UART port number"
  5. range 0 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
  6. default 2 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S3
  7. range 0 1
  8. default 1
  9. help
  10. UART communication port number for the example.
  11. See UART documentation for available port numbers.
  12. config ECHO_UART_BAUD_RATE
  13. int "UART communication speed"
  14. range 1200 115200
  15. default 115200
  16. help
  17. UART communication speed for Modbus example.
  18. config ECHO_UART_RXD
  19. int "UART RXD pin number"
  20. range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
  21. default 22 if IDF_TARGET_ESP32
  22. default 8 if !IDF_TARGET_ESP32
  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 ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
  29. default 23 if IDF_TARGET_ESP32
  30. default 9 if !IDF_TARGET_ESP32
  31. help
  32. GPIO number for UART TX pin. See UART documentation for more information
  33. about available pin numbers for UART.
  34. config ECHO_UART_RTS
  35. int "UART RTS pin number"
  36. range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
  37. default 18 if IDF_TARGET_ESP32
  38. default 10 if !IDF_TARGET_ESP32
  39. help
  40. GPIO number for UART RTS pin. This pin is connected to
  41. ~RE/DE pin of RS485 transceiver to switch direction.
  42. See UART documentation for more information about available pin
  43. numbers for UART.
  44. endmenu