Kconfig.projbuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. menu "Echo Example Configuration"
  2. orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
  3. config EXAMPLE_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 EXAMPLE_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 EXAMPLE_UART_RXD
  19. int "UART RXD pin number"
  20. range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
  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 ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
  28. default 4
  29. help
  30. GPIO number for UART TX pin. See UART documentation for more information
  31. about available pin numbers for UART.
  32. config EXAMPLE_TASK_STACK_SIZE
  33. int "UART echo example task stack size"
  34. range 1024 16384
  35. default 2048
  36. help
  37. Defines stack size for UART echo example. Insufficient stack size can cause crash.
  38. endmenu