Kconfig.projbuild 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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_LAN87XX
  139. bool "LAN87xx"
  140. help
  141. Below chips are supported:
  142. LAN8710A is a small footprint MII/RMII 10/100 Ethernet Transceiver with HP Auto-MDIX and
  143. flexPWR® Technology.
  144. LAN8720A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
  145. LAN8740A/LAN8741A is a small footprint MII/RMII 10/100 Energy Efficient Ethernet Transceiver
  146. with HP Auto-MDIX and flexPWR® Technology.
  147. LAN8742A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX and
  148. flexPWR® Technology.
  149. Goto https://www.microchip.com for more information about them.
  150. config EXAMPLE_ETH_PHY_DP83848
  151. bool "DP83848"
  152. help
  153. DP83848 is a single port 10/100Mb/s Ethernet Physical Layer Transceiver.
  154. Goto http://www.ti.com/product/DP83848J for more information about it.
  155. endchoice
  156. config EXAMPLE_ETH_MDC_GPIO
  157. int "SMI MDC GPIO number"
  158. default 23
  159. help
  160. Set the GPIO number used by SMI MDC.
  161. config EXAMPLE_ETH_MDIO_GPIO
  162. int "SMI MDIO GPIO number"
  163. default 18
  164. help
  165. Set the GPIO number used by SMI MDIO.
  166. endif
  167. if EXAMPLE_USE_SPI_ETHERNET
  168. config EXAMPLE_ETH_SPI_HOST
  169. int "SPI Host Number"
  170. range 0 2
  171. default 1
  172. help
  173. Set the SPI host used to communicate with the SPI Ethernet Controller.
  174. config EXAMPLE_ETH_SPI_SCLK_GPIO
  175. int "SPI SCLK GPIO number"
  176. range 0 33
  177. default 20
  178. help
  179. Set the GPIO number used by SPI SCLK.
  180. config EXAMPLE_ETH_SPI_MOSI_GPIO
  181. int "SPI MOSI GPIO number"
  182. range 0 33
  183. default 19
  184. help
  185. Set the GPIO number used by SPI MOSI.
  186. config EXAMPLE_ETH_SPI_MISO_GPIO
  187. int "SPI MISO GPIO number"
  188. range 0 33
  189. default 18
  190. help
  191. Set the GPIO number used by SPI MISO.
  192. config EXAMPLE_ETH_SPI_CS_GPIO
  193. int "SPI CS GPIO number"
  194. range 0 33
  195. default 21
  196. help
  197. Set the GPIO number used by SPI CS.
  198. config EXAMPLE_ETH_SPI_CLOCK_MHZ
  199. int "SPI clock speed (MHz)"
  200. range 20 80
  201. default 36
  202. help
  203. Set the clock speed (MHz) of SPI interface.
  204. config EXAMPLE_ETH_SPI_INT_GPIO
  205. int "Interrupt GPIO number"
  206. default 4
  207. help
  208. Set the GPIO number used by the SPI Ethernet module interrupt line.
  209. endif # EXAMPLE_USE_SPI_ETHERNET
  210. config EXAMPLE_ETH_PHY_RST_GPIO
  211. int "PHY Reset GPIO number"
  212. default 5
  213. help
  214. Set the GPIO number used to reset PHY chip.
  215. Set to -1 to disable PHY chip hardware reset.
  216. config EXAMPLE_ETH_PHY_ADDR
  217. int "PHY Address"
  218. range 0 31 if EXAMPLE_USE_INTERNAL_ETHERNET
  219. default 1
  220. help
  221. Set PHY address according your board schematic.
  222. endif # EXAMPLE_CONNECT_ETHERNET
  223. config EXAMPLE_CONNECT_IPV6
  224. bool "Obtain IPv6 address"
  225. default y
  226. depends on EXAMPLE_CONNECT_WIFI || EXAMPLE_CONNECT_ETHERNET
  227. select LWIP_IPV6
  228. help
  229. By default, examples will wait until IPv4 and IPv6 local link addresses are obtained.
  230. Disable this option if the network does not support IPv6.
  231. Choose the preferred IPv6 address type if the connection code should wait until other than
  232. the local link address gets assigned.
  233. Consider enabling IPv6 stateless address autoconfiguration (SLAAC) in the LWIP component.
  234. if EXAMPLE_CONNECT_IPV6
  235. choice EXAMPLE_CONNECT_PREFERRED_IPV6
  236. prompt "Preferred IPv6 Type"
  237. default EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
  238. help
  239. Select which kind of IPv6 address the connect logic waits for.
  240. config EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
  241. bool "Local Link Address"
  242. help
  243. Blocks until Local link address assigned.
  244. config EXAMPLE_CONNECT_IPV6_PREF_GLOBAL
  245. bool "Global Address"
  246. help
  247. Blocks until Global address assigned.
  248. config EXAMPLE_CONNECT_IPV6_PREF_SITE_LOCAL
  249. bool "Site Local Address"
  250. help
  251. Blocks until Site link address assigned.
  252. config EXAMPLE_CONNECT_IPV6_PREF_UNIQUE_LOCAL
  253. bool "Unique Local Link Address"
  254. help
  255. Blocks until Unique local address assigned.
  256. endchoice
  257. endif
  258. endmenu