Kconfig.projbuild 8.4 KB

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