Kconfig.projbuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. menu "Example Configuration"
  2. choice EXAMPLE_IP_MODE
  3. prompt "IP Version"
  4. depends on EXAMPLE_SOCKET_IP_INPUT_STRING
  5. help
  6. Example can use either IPV4 or IPV6.
  7. config EXAMPLE_IPV4
  8. bool "IPV4"
  9. config EXAMPLE_IPV6
  10. bool "IPV6"
  11. endchoice
  12. config EXAMPLE_IPV4_ADDR
  13. string "IPV4 Address"
  14. default "192.168.0.165"
  15. depends on EXAMPLE_IPV4
  16. help
  17. The example will connect to this IPV4 address.
  18. config EXAMPLE_IPV6_ADDR
  19. string "IPV6 Address"
  20. default "FE80::30AD:E57B:C212:68AD"
  21. depends on EXAMPLE_IPV6
  22. help
  23. The example will connect to this IPV6 address.
  24. config EXAMPLE_PORT
  25. int "Port"
  26. range 0 65535
  27. default 3333
  28. help
  29. The remote port to which the client example will connect to.
  30. choice EXAMPLE_SOCKET_IP_INPUT
  31. prompt "Socket example source"
  32. default EXAMPLE_SOCKET_IP_INPUT_STRING
  33. help
  34. Selects the input source of the IP used in the example.
  35. config EXAMPLE_SOCKET_IP_INPUT_STRING
  36. bool "From string"
  37. config EXAMPLE_SOCKET_IP_INPUT_STDIN
  38. bool "From stdin"
  39. endchoice
  40. endmenu