Kconfig.projbuild 1.6 KB

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