Kconfig.projbuild 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. menu "Example Connection Configuration"
  2. config EXAMPLE_CONNECT_WIFI
  3. bool "connect using WiFi interface"
  4. default y
  5. help
  6. Protocol examples can use Wi-Fi and/or Ethernet to connect to the network.
  7. Choose this option to connect with WiFi
  8. if EXAMPLE_CONNECT_WIFI
  9. config EXAMPLE_WIFI_SSID
  10. string "WiFi SSID"
  11. default "myssid"
  12. help
  13. SSID (network name) for the example to connect to.
  14. config EXAMPLE_WIFI_PASSWORD
  15. string "WiFi Password"
  16. default "mypassword"
  17. help
  18. WiFi password (WPA or WPA2) for the example to use.
  19. Can be left blank if the network has no security set.
  20. choice EXAMPLE_WIFI_SCAN_METHOD
  21. prompt "WiFi Scan Method"
  22. default EXAMPLE_WIFI_SCAN_METHOD_ALL_CHANNEL
  23. help
  24. WiFi scan method:
  25. If "Fast" is selected, scan will end after find SSID match AP.
  26. If "All Channel" is selected, scan will end after scan all the channel.
  27. config EXAMPLE_WIFI_SCAN_METHOD_FAST
  28. bool "Fast"
  29. config EXAMPLE_WIFI_SCAN_METHOD_ALL_CHANNEL
  30. bool "All Channel"
  31. endchoice
  32. menu "WiFi Scan threshold"
  33. config EXAMPLE_WIFI_SCAN_RSSI_THRESHOLD
  34. int "WiFi minimum rssi"
  35. range -127 0
  36. default -127
  37. help
  38. The minimum rssi to accept in the scan mode.
  39. choice EXAMPLE_WIFI_SCAN_AUTH_MODE_THRESHOLD
  40. prompt "WiFi Scan auth mode threshold"
  41. default EXAMPLE_WIFI_AUTH_OPEN
  42. help
  43. The weakest authmode to accept in the scan mode.
  44. config EXAMPLE_WIFI_AUTH_OPEN
  45. bool "OPEN"
  46. config EXAMPLE_WIFI_AUTH_WEP
  47. bool "WEP"
  48. config EXAMPLE_WIFI_AUTH_WPA_PSK
  49. bool "WPA PSK"
  50. config EXAMPLE_WIFI_AUTH_WPA2_PSK
  51. bool "WPA2 PSK"
  52. config EXAMPLE_WIFI_AUTH_WPA_WPA2_PSK
  53. bool "WPA WPA2 PSK"
  54. config EXAMPLE_WIFI_AUTH_WPA2_ENTERPRISE
  55. bool "WPA2 ENTERPRISE"
  56. config EXAMPLE_WIFI_AUTH_WPA3_PSK
  57. bool "WPA3 PSK"
  58. config EXAMPLE_WIFI_AUTH_WPA2_WPA3_PSK
  59. bool "WPA2 WPA3 PSK"
  60. config EXAMPLE_WIFI_AUTH_WAPI_PSK
  61. bool "WAPI PSK"
  62. endchoice
  63. endmenu
  64. choice EXAMPLE_WIFI_CONNECT_AP_SORT_METHOD
  65. prompt "WiFi Connect AP Sort Method"
  66. default EXAMPLE_WIFI_CONNECT_AP_BY_SIGNAL
  67. help
  68. WiFi connect AP sort method:
  69. If "Signal" is selected, Sort matched APs in scan list by RSSI.
  70. If "Security" is selected, Sort matched APs in scan list by security mode.
  71. config EXAMPLE_WIFI_CONNECT_AP_BY_SIGNAL
  72. bool "Signal"
  73. config EXAMPLE_WIFI_CONNECT_AP_BY_SECURITY
  74. bool "Security"
  75. endchoice
  76. endif
  77. config EXAMPLE_CONNECT_ETHERNET
  78. bool "connect using Ethernet interface"
  79. default n
  80. help
  81. Protocol examples can use Wi-Fi and/or Ethernet to connect to the network.
  82. Choose this option to connect with Ethernet
  83. if EXAMPLE_CONNECT_ETHERNET
  84. config EXAMPLE_USE_SPI_ETHERNET
  85. bool
  86. choice EXAMPLE_ETHERNET_TYPE
  87. prompt "Ethernet Type"
  88. default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32
  89. default EXAMPLE_USE_W5500
  90. help
  91. Select which kind of Ethernet will be used in the example.
  92. config EXAMPLE_USE_INTERNAL_ETHERNET
  93. depends on IDF_TARGET_ESP32
  94. select ETH_USE_ESP32_EMAC
  95. bool "Internal EMAC"
  96. help
  97. Select internal Ethernet MAC controller.
  98. config EXAMPLE_USE_DM9051
  99. bool "DM9051 Module"
  100. select EXAMPLE_USE_SPI_ETHERNET
  101. select ETH_USE_SPI_ETHERNET
  102. select ETH_SPI_ETHERNET_DM9051
  103. help
  104. Select external SPI-Ethernet module.
  105. config EXAMPLE_USE_W5500
  106. bool "W5500 Module"
  107. select EXAMPLE_USE_SPI_ETHERNET
  108. select ETH_USE_SPI_ETHERNET
  109. select ETH_SPI_ETHERNET_W5500
  110. help
  111. Select external SPI-Ethernet module (W5500).
  112. config EXAMPLE_USE_OPENETH
  113. bool "OpenCores Ethernet MAC (EXPERIMENTAL)"
  114. select ETH_USE_OPENETH
  115. help
  116. When this option is enabled, the example is built with support for
  117. OpenCores Ethernet MAC, which allows testing the example in QEMU.
  118. Note that this option is used for internal testing purposes, and
  119. not officially supported. Examples built with this option enabled
  120. will not run on a real ESP32 chip.
  121. endchoice # EXAMPLE_ETHERNET_TYPE
  122. if EXAMPLE_USE_INTERNAL_ETHERNET
  123. choice EXAMPLE_ETH_PHY_MODEL
  124. prompt "Ethernet PHY Device"
  125. default EXAMPLE_ETH_PHY_IP101
  126. help
  127. Select the Ethernet PHY device to use in the example.
  128. config EXAMPLE_ETH_PHY_IP101
  129. bool "IP101"
  130. help
  131. IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
  132. Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
  133. config EXAMPLE_ETH_PHY_RTL8201
  134. bool "RTL8201/SR8201"
  135. help
  136. RTL8201F/SR8201F is a single port 10/100Mb Ethernet Transceiver with auto MDIX.
  137. Goto http://www.corechip-sz.com/productsview.asp?id=22 for more information about it.
  138. config EXAMPLE_ETH_PHY_LAN8720
  139. bool "LAN8720"
  140. help
  141. LAN8720A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
  142. Goto https://www.microchip.com/LAN8720A for more information about it.
  143. config EXAMPLE_ETH_PHY_DP83848
  144. bool "DP83848"
  145. help
  146. DP83848 is a single port 10/100Mb/s Ethernet Physical Layer Transceiver.
  147. Goto http://www.ti.com/product/DP83848J for more information about it.
  148. endchoice
  149. config EXAMPLE_ETH_MDC_GPIO
  150. int "SMI MDC GPIO number"
  151. default 23
  152. help
  153. Set the GPIO number used by SMI MDC.
  154. config EXAMPLE_ETH_MDIO_GPIO
  155. int "SMI MDIO GPIO number"
  156. default 18
  157. help
  158. Set the GPIO number used by SMI MDIO.
  159. endif
  160. if EXAMPLE_USE_SPI_ETHERNET
  161. config EXAMPLE_ETH_SPI_HOST
  162. int "SPI Host Number"
  163. range 0 2
  164. default 1
  165. help
  166. Set the SPI host used to communicate with the SPI Ethernet Controller.
  167. config EXAMPLE_ETH_SPI_SCLK_GPIO
  168. int "SPI SCLK GPIO number"
  169. range 0 33
  170. default 20
  171. help
  172. Set the GPIO number used by SPI SCLK.
  173. config EXAMPLE_ETH_SPI_MOSI_GPIO
  174. int "SPI MOSI GPIO number"
  175. range 0 33
  176. default 19
  177. help
  178. Set the GPIO number used by SPI MOSI.
  179. config EXAMPLE_ETH_SPI_MISO_GPIO
  180. int "SPI MISO GPIO number"
  181. range 0 33
  182. default 18
  183. help
  184. Set the GPIO number used by SPI MISO.
  185. config EXAMPLE_ETH_SPI_CS_GPIO
  186. int "SPI CS GPIO number"
  187. range 0 33
  188. default 21
  189. help
  190. Set the GPIO number used by SPI CS.
  191. config EXAMPLE_ETH_SPI_CLOCK_MHZ
  192. int "SPI clock speed (MHz)"
  193. range 20 80
  194. default 36
  195. help
  196. Set the clock speed (MHz) of SPI interface.
  197. config EXAMPLE_ETH_SPI_INT_GPIO
  198. int "Interrupt GPIO number"
  199. default 4
  200. help
  201. Set the GPIO number used by the SPI Ethernet module interrupt line.
  202. endif # EXAMPLE_USE_SPI_ETHERNET
  203. config EXAMPLE_ETH_PHY_RST_GPIO
  204. int "PHY Reset GPIO number"
  205. default 5
  206. help
  207. Set the GPIO number used to reset PHY chip.
  208. Set to -1 to disable PHY chip hardware reset.
  209. config EXAMPLE_ETH_PHY_ADDR
  210. int "PHY Address"
  211. range 0 31 if EXAMPLE_USE_INTERNAL_ETHERNET
  212. default 1
  213. help
  214. Set PHY address according your board schematic.
  215. endif # EXAMPLE_CONNECT_ETHERNET
  216. config EXAMPLE_CONNECT_IPV6
  217. bool "Obtain IPv6 address"
  218. default y
  219. depends on EXAMPLE_CONNECT_WIFI || EXAMPLE_CONNECT_ETHERNET
  220. select LWIP_IPV6
  221. help
  222. By default, examples will wait until IPv4 and IPv6 local link addresses are obtained.
  223. Disable this option if the network does not support IPv6.
  224. Choose the preferred IPv6 address type if the connection code should wait until other than
  225. the local link address gets assigned.
  226. Consider enabling IPv6 stateless address autoconfiguration (SLAAC) in the LWIP component.
  227. if EXAMPLE_CONNECT_IPV6
  228. choice EXAMPLE_CONNECT_PREFERRED_IPV6
  229. prompt "Preferred IPv6 Type"
  230. default EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
  231. help
  232. Select which kind of IPv6 address the connect logic waits for.
  233. config EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
  234. bool "Local Link Address"
  235. help
  236. Blocks until Local link address assigned.
  237. config EXAMPLE_CONNECT_IPV6_PREF_GLOBAL
  238. bool "Global Address"
  239. help
  240. Blocks until Global address assigned.
  241. config EXAMPLE_CONNECT_IPV6_PREF_SITE_LOCAL
  242. bool "Site Local Address"
  243. help
  244. Blocks until Site link address assigned.
  245. config EXAMPLE_CONNECT_IPV6_PREF_UNIQUE_LOCAL
  246. bool "Unique Local Link Address"
  247. help
  248. Blocks until Unique local address assigned.
  249. endchoice
  250. endif
  251. endmenu