Kconfig.projbuild 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. endif
  21. config EXAMPLE_CONNECT_ETHERNET
  22. bool "connect using Ethernet interface"
  23. default n
  24. help
  25. Protocol examples can use Wi-Fi and/or Ethernet to connect to the network.
  26. Choose this option to connect with Ethernet
  27. if EXAMPLE_CONNECT_ETHERNET
  28. choice EXAMPLE_USE_ETHERNET
  29. prompt "Ethernet Type"
  30. default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32
  31. default EXAMPLE_USE_W5500
  32. help
  33. Select which kind of Ethernet will be used in the example.
  34. config EXAMPLE_USE_INTERNAL_ETHERNET
  35. depends on IDF_TARGET_ESP32
  36. select ETH_USE_ESP32_EMAC
  37. bool "Internal EMAC"
  38. help
  39. Select internal Ethernet MAC controller.
  40. config EXAMPLE_USE_DM9051
  41. bool "DM9051 Module"
  42. select ETH_USE_SPI_ETHERNET
  43. select ETH_SPI_ETHERNET_DM9051
  44. help
  45. Select external SPI-Ethernet module.
  46. config EXAMPLE_USE_W5500
  47. bool "W5500 Module"
  48. select ETH_USE_SPI_ETHERNET
  49. select ETH_SPI_ETHERNET_W5500
  50. help
  51. Select external SPI-Ethernet module (W5500).
  52. config EXAMPLE_USE_OPENETH
  53. bool "OpenCores Ethernet MAC (EXPERIMENTAL)"
  54. select ETH_USE_OPENETH
  55. help
  56. When this option is enabled, the example is built with support for
  57. OpenCores Ethernet MAC, which allows testing the example in QEMU.
  58. Note that this option is used for internal testing purposes, and
  59. not officially supported. Examples built with this option enabled
  60. will not run on a real ESP32 chip.
  61. endchoice
  62. if EXAMPLE_USE_INTERNAL_ETHERNET
  63. choice EXAMPLE_ETH_PHY_MODEL
  64. prompt "Ethernet PHY Device"
  65. default EXAMPLE_ETH_PHY_IP101
  66. help
  67. Select the Ethernet PHY device to use in the example.
  68. config EXAMPLE_ETH_PHY_IP101
  69. bool "IP101"
  70. help
  71. IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
  72. Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
  73. config EXAMPLE_ETH_PHY_RTL8201
  74. bool "RTL8201/SR8201"
  75. help
  76. RTL8201F/SR8201F is a single port 10/100Mb Ethernet Transceiver with auto MDIX.
  77. Goto http://www.corechip-sz.com/productsview.asp?id=22 for more information about it.
  78. config EXAMPLE_ETH_PHY_LAN8720
  79. bool "LAN8720"
  80. help
  81. LAN8720A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
  82. Goto https://www.microchip.com/LAN8720A for more information about it.
  83. config EXAMPLE_ETH_PHY_DP83848
  84. bool "DP83848"
  85. help
  86. DP83848 is a single port 10/100Mb/s Ethernet Physical Layer Transceiver.
  87. Goto http://www.ti.com/product/DP83848J for more information about it.
  88. endchoice
  89. config EXAMPLE_ETH_MDC_GPIO
  90. int "SMI MDC GPIO number"
  91. default 23
  92. help
  93. Set the GPIO number used by SMI MDC.
  94. config EXAMPLE_ETH_MDIO_GPIO
  95. int "SMI MDIO GPIO number"
  96. default 18
  97. help
  98. Set the GPIO number used by SMI MDIO.
  99. endif
  100. if ETH_USE_SPI_ETHERNET
  101. config EXAMPLE_ETH_SPI_HOST
  102. int "SPI Host Number"
  103. range 0 2
  104. default 1
  105. help
  106. Set the SPI host used to communicate with the SPI Ethernet Controller.
  107. config EXAMPLE_ETH_SPI_SCLK_GPIO
  108. int "SPI SCLK GPIO number"
  109. range 0 33
  110. default 20
  111. help
  112. Set the GPIO number used by SPI SCLK.
  113. config EXAMPLE_ETH_SPI_MOSI_GPIO
  114. int "SPI MOSI GPIO number"
  115. range 0 33
  116. default 19
  117. help
  118. Set the GPIO number used by SPI MOSI.
  119. config EXAMPLE_ETH_SPI_MISO_GPIO
  120. int "SPI MISO GPIO number"
  121. range 0 33
  122. default 18
  123. help
  124. Set the GPIO number used by SPI MISO.
  125. config EXAMPLE_ETH_SPI_CS_GPIO
  126. int "SPI CS GPIO number"
  127. range 0 33
  128. default 21
  129. help
  130. Set the GPIO number used by SPI CS.
  131. config EXAMPLE_ETH_SPI_CLOCK_MHZ
  132. int "SPI clock speed (MHz)"
  133. range 20 80
  134. default 36
  135. help
  136. Set the clock speed (MHz) of SPI interface.
  137. config EXAMPLE_ETH_SPI_INT_GPIO
  138. int "Interrupt GPIO number"
  139. default 4
  140. help
  141. Set the GPIO number used by the SPI Ethernet module interrupt line.
  142. endif # ETH_USE_SPI_ETHERNET
  143. config EXAMPLE_ETH_PHY_RST_GPIO
  144. int "PHY Reset GPIO number"
  145. default 5
  146. help
  147. Set the GPIO number used to reset PHY chip.
  148. Set to -1 to disable PHY chip hardware reset.
  149. config EXAMPLE_ETH_PHY_ADDR
  150. int "PHY Address"
  151. range 0 31 if EXAMPLE_USE_INTERNAL_ETHERNET
  152. default 1
  153. help
  154. Set PHY address according your board schematic.
  155. endif
  156. config EXAMPLE_CONNECT_IPV6
  157. bool "Obtain IPv6 address"
  158. default y
  159. depends on EXAMPLE_CONNECT_WIFI || EXAMPLE_CONNECT_ETHERNET
  160. help
  161. By default, examples will wait until IPv4 and IPv6 local link addresses are obtained.
  162. Disable this option if the network does not support IPv6.
  163. Choose the preferred IPv6 address type if the connection code should wait until other than
  164. the local link address gets assigned.
  165. Consider enabling IPv6 stateless address autoconfiguration (SLAAC) in the LWIP component.
  166. if EXAMPLE_CONNECT_IPV6
  167. choice EXAMPLE_CONNECT_PREFERRED_IPV6
  168. prompt "Preferred IPv6 Type"
  169. default EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
  170. help
  171. Select which kind of IPv6 address the connect logic waits for.
  172. config EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
  173. bool "Local Link Address"
  174. help
  175. Blocks until Local link address assigned.
  176. config EXAMPLE_CONNECT_IPV6_PREF_GLOBAL
  177. bool "Global Address"
  178. help
  179. Blocks until Global address assigned.
  180. config EXAMPLE_CONNECT_IPV6_PREF_SITE_LOCAL
  181. bool "Site Local Address"
  182. help
  183. Blocks until Site link address assigned.
  184. config EXAMPLE_CONNECT_IPV6_PREF_UNIQUE_LOCAL
  185. bool "Unique Local Link Address"
  186. help
  187. Blocks until Unique local address assigned.
  188. endchoice
  189. endif
  190. endmenu