Kconfig.projbuild 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. menu "Example Configuration"
  2. orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
  3. choice EXAMPLE_WIFI_CONFIGURATION
  4. prompt "WiFi configuration"
  5. default EXAMPLE_WIFI_CONFIGURATION_MANUAL
  6. help
  7. Choose how the WiFi settings should be configured.
  8. config EXAMPLE_WIFI_CONFIGURATION_MANUAL
  9. bool
  10. prompt "Manual configuration via http server"
  11. config EXAMPLE_WIFI_CONFIGURATION_PROVISIONING
  12. bool
  13. prompt "Using unified provisioning"
  14. endchoice
  15. choice EXAMPLE_PROV_SECURITY_VERSION
  16. bool "Protocomm security version"
  17. depends on EXAMPLE_WIFI_CONFIGURATION_PROVISIONING
  18. default EXAMPLE_PROV_SECURITY_VERSION_1
  19. help
  20. Wi-Fi provisioning component offers 3 security versions.
  21. The example offers a choice between security version 1 and 2.
  22. You can also choose version 0, which is recommended only
  23. for testing (not secure, plain text communication)
  24. config EXAMPLE_PROV_SECURITY_VERSION_1
  25. bool "Security version 1"
  26. select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_1
  27. config EXAMPLE_PROV_SECURITY_VERSION_2
  28. bool "Security version 2"
  29. select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2
  30. config EXAMPLE_PROV_SECURITY_VERSION_0
  31. bool "Plain text communication -- not secure!"
  32. select ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_0
  33. endchoice
  34. choice EXAMPLE_PROV_MODE
  35. bool "Security version 2 mode"
  36. depends on EXAMPLE_PROV_SECURITY_VERSION_2
  37. default EXAMPLE_PROV_SEC2_DEV_MODE
  38. config EXAMPLE_PROV_SEC2_DEV_MODE
  39. bool "Security version 2 development mode"
  40. depends on EXAMPLE_PROV_SECURITY_VERSION_2
  41. help
  42. This enables the development mode for
  43. security version 2.
  44. Please note that this mode is NOT recommended for production purpose.
  45. config EXAMPLE_PROV_SEC2_PROD_MODE
  46. bool "Security version 2 production mode"
  47. depends on EXAMPLE_PROV_SECURITY_VERSION_2
  48. help
  49. This enables the production mode for
  50. security version 2.
  51. endchoice
  52. choice EXAMPLE_WIRED_INTERFACE
  53. prompt "Choose the Wired interface"
  54. default EXAMPLE_WIRED_INTERFACE_IS_ETHERNET
  55. help
  56. Choose the wired interface: Ethernet or USB
  57. config EXAMPLE_WIRED_INTERFACE_IS_ETHERNET
  58. bool
  59. prompt "Ethernet"
  60. config EXAMPLE_WIRED_INTERFACE_IS_USB
  61. bool
  62. depends on IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
  63. prompt "USB NCM"
  64. endchoice
  65. config EXAMPLE_RECONFIGURE_BUTTON
  66. int "Button for switching to reconfigure mode"
  67. range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
  68. default 2 if EXAMPLE_WIRED_INTERFACE_IS_ETHERNET
  69. default 0
  70. help
  71. The button on this GPIO is used to reset the board to
  72. the reconfiguration mode, i.e. to restart provisioning
  73. or manual configuration of Wi-Fi settings (ssid, password)
  74. endmenu