Kconfig.projbuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. menu "Echo Example Configuration"
  2. config EXAMPLE_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 EXAMPLE_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 EXAMPLE_UART_RXD
  18. int "UART RXD pin number"
  19. range 0 34 if IDF_TARGET_ESP32
  20. range 0 46 if IDF_TARGET_ESP32S2
  21. default 5
  22. help
  23. GPIO number for UART RX pin. See UART documentation for more information
  24. about available pin numbers for UART.
  25. config EXAMPLE_UART_TXD
  26. int "UART TXD pin number"
  27. range 0 34 if IDF_TARGET_ESP32
  28. range 0 46 if IDF_TARGET_ESP32S2
  29. default 4
  30. help
  31. GPIO number for UART TX pin. See UART documentation for more information
  32. about available pin numbers for UART.
  33. config EXAMPLE_TASK_STACK_SIZE
  34. int "UART echo example task stack size"
  35. range 1024 16384
  36. default 2048
  37. help
  38. Defines stack size for UART echo example. Insufficient stack size can cause crash.
  39. endmenu