Kconfig.projbuild 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. menu "Example Connection Configuration"
  2. choice EXAMPLE_CONNECT_INTERFACE
  3. prompt "Connect using"
  4. default EXAMPLE_CONNECT_WIFI
  5. help
  6. Protocol examples can use Wi-Fi or Ethernet to connect to the network.
  7. Choose which interface to use.
  8. config EXAMPLE_CONNECT_WIFI
  9. bool "Wi-Fi"
  10. config EXAMPLE_CONNECT_ETHERNET
  11. bool "Ethernet"
  12. endchoice
  13. if EXAMPLE_CONNECT_WIFI
  14. config EXAMPLE_WIFI_SSID
  15. string "WiFi SSID"
  16. default "myssid"
  17. help
  18. SSID (network name) for the example to connect to.
  19. config EXAMPLE_WIFI_PASSWORD
  20. string "WiFi Password"
  21. default "mypassword"
  22. help
  23. WiFi password (WPA or WPA2) for the example to use.
  24. Can be left blank if the network has no security set.
  25. endif
  26. if EXAMPLE_CONNECT_ETHERNET
  27. choice EXAMPLE_USE_ETHERNET
  28. prompt "Ethernet Type"
  29. default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32
  30. default EXAMPLE_USE_SPI_ETHERNET if !IDF_TARGET_ESP32
  31. help
  32. Select which kind of Ethernet will be used in the example.
  33. config EXAMPLE_USE_INTERNAL_ETHERNET
  34. depends on IDF_TARGET_ESP32
  35. select ETH_USE_ESP32_EMAC
  36. bool "Internal EMAC"
  37. help
  38. Select internal Ethernet MAC controller.
  39. config EXAMPLE_USE_SPI_ETHERNET
  40. bool "SPI Ethernet Module"
  41. select ETH_USE_SPI_ETHERNET
  42. help
  43. Select external SPI-Ethernet module.
  44. endchoice
  45. if EXAMPLE_USE_INTERNAL_ETHERNET
  46. choice EXAMPLE_ETH_PHY_MODEL
  47. prompt "Ethernet PHY Device"
  48. default EXAMPLE_ETH_PHY_IP101
  49. help
  50. Select the Ethernet PHY device to use in the example.
  51. config EXAMPLE_ETH_PHY_IP101
  52. bool "IP101"
  53. help
  54. IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
  55. Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
  56. config EXAMPLE_ETH_PHY_RTL8201
  57. bool "RTL8201/SR8201"
  58. help
  59. RTL8201F/SR8201F is a single port 10/100Mb Ethernet Transceiver with auto MDIX.
  60. Goto http://www.corechip-sz.com/productsview.asp?id=22 for more information about it.
  61. config EXAMPLE_ETH_PHY_LAN8720
  62. bool "LAN8720"
  63. help
  64. LAN8720A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
  65. Goto https://www.microchip.com/LAN8720A for more information about it.
  66. config EXAMPLE_ETH_PHY_DP83848
  67. bool "DP83848"
  68. help
  69. DP83848 is a single port 10/100Mb/s Ethernet Physical Layer Transceiver.
  70. Goto http://www.ti.com/product/DP83848J for more information about it.
  71. endchoice
  72. endif
  73. if EXAMPLE_USE_SPI_ETHERNET
  74. config EXAMPLE_ETH_SPI_HOST
  75. int "SPI Host Number"
  76. range 0 2
  77. default 1
  78. help
  79. Set the SPI host used to communicate with DM9051.
  80. config EXAMPLE_ETH_SCLK_GPIO
  81. int "SPI SCLK GPIO number"
  82. range 0 33
  83. default 19
  84. help
  85. Set the GPIO number used by SPI SCLK.
  86. config EXAMPLE_ETH_MOSI_GPIO
  87. int "SPI MOSI GPIO number"
  88. range 0 33
  89. default 23
  90. help
  91. Set the GPIO number used by SPI MOSI.
  92. config EXAMPLE_ETH_MISO_GPIO
  93. int "SPI MISO GPIO number"
  94. range 0 33
  95. default 25
  96. help
  97. Set the GPIO number used by SPI MISO.
  98. config EXAMPLE_ETH_CS_GPIO
  99. int "SPI CS GPIO number"
  100. range 0 33
  101. default 22
  102. help
  103. Set the GPIO number used by SPI CS.
  104. config EXAMPLE_ETH_SPI_CLOCK_MHZ
  105. int "SPI clock speed (MHz)"
  106. range 20 80
  107. default 20
  108. help
  109. Set the clock speed (MHz) of SPI interface.
  110. endif
  111. endif
  112. config EXAMPLE_CONNECT_IPV6
  113. bool "Obtain IPv6 link-local address"
  114. depends on IDF_TARGET_ESP32
  115. # ToDo: remove once IPV6 is supported on esp32s2
  116. default y
  117. help
  118. By default, examples will wait until IPv4 and IPv6 addresses are obtained.
  119. Disable this option if the network does not support IPv6.
  120. endmenu