Kconfig.projbuild 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. menu "Example Configuration"
  2. config EXAMPLE_USE_SPI_ETHERNET
  3. bool
  4. choice EXAMPLE_ETHERNET_TYPE
  5. prompt "Ethernet Type"
  6. default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32
  7. default EXAMPLE_USE_W5500
  8. help
  9. Select which kind of Ethernet will be used in the example.
  10. config EXAMPLE_USE_INTERNAL_ETHERNET
  11. depends on IDF_TARGET_ESP32
  12. select ETH_USE_ESP32_EMAC
  13. bool "Internal EMAC"
  14. help
  15. Select internal Ethernet MAC controller.
  16. config EXAMPLE_USE_DM9051
  17. bool "DM9051 Module"
  18. select EXAMPLE_USE_SPI_ETHERNET
  19. select ETH_USE_SPI_ETHERNET
  20. select ETH_SPI_ETHERNET_DM9051
  21. help
  22. Select external SPI-Ethernet module (DM9051).
  23. config EXAMPLE_USE_W5500
  24. bool "W5500 Module"
  25. select EXAMPLE_USE_SPI_ETHERNET
  26. select ETH_USE_SPI_ETHERNET
  27. select ETH_SPI_ETHERNET_W5500
  28. help
  29. Select external SPI-Ethernet module (W5500).
  30. endchoice # EXAMPLE_ETHERNET_TYPE
  31. if EXAMPLE_USE_INTERNAL_ETHERNET
  32. choice EXAMPLE_ETH_PHY_MODEL
  33. prompt "Ethernet PHY Device"
  34. default EXAMPLE_ETH_PHY_IP101
  35. help
  36. Select the Ethernet PHY device to use in the example.
  37. config EXAMPLE_ETH_PHY_IP101
  38. bool "IP101"
  39. help
  40. IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
  41. Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
  42. config EXAMPLE_ETH_PHY_RTL8201
  43. bool "RTL8201/SR8201"
  44. help
  45. RTL8201F/SR8201F is a single port 10/100Mb Ethernet Transceiver with auto MDIX.
  46. Goto http://www.corechip-sz.com/productsview.asp?id=22 for more information about it.
  47. config EXAMPLE_ETH_PHY_LAN8720
  48. bool "LAN8720"
  49. help
  50. LAN8720A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
  51. Goto https://www.microchip.com/LAN8720A for more information about it.
  52. config EXAMPLE_ETH_PHY_DP83848
  53. bool "DP83848"
  54. help
  55. DP83848 is a single port 10/100Mb/s Ethernet Physical Layer Transceiver.
  56. Goto http://www.ti.com/product/DP83848J for more information about it.
  57. config EXAMPLE_ETH_PHY_KSZ8041
  58. bool "KSZ8041"
  59. help
  60. The KSZ8041 is a single supply 10Base-T/100Base-TX Physical Layer Transceiver.
  61. Goto https://www.microchip.com/wwwproducts/en/KSZ8041 for more information about it.
  62. endchoice # EXAMPLE_ETH_PHY_MODEL
  63. config EXAMPLE_ETH_MDC_GPIO
  64. int "SMI MDC GPIO number"
  65. default 23
  66. help
  67. Set the GPIO number used by SMI MDC.
  68. config EXAMPLE_ETH_MDIO_GPIO
  69. int "SMI MDIO GPIO number"
  70. default 18
  71. help
  72. Set the GPIO number used by SMI MDIO.
  73. endif # EXAMPLE_USE_INTERNAL_ETHERNET
  74. if EXAMPLE_USE_SPI_ETHERNET
  75. config EXAMPLE_ETH_SPI_HOST
  76. int "SPI Host Number"
  77. range 0 2
  78. default 1
  79. help
  80. Set the SPI host used to communicate with the SPI Ethernet Controller.
  81. config EXAMPLE_ETH_SPI_SCLK_GPIO
  82. int "SPI SCLK GPIO number"
  83. range 0 33
  84. default 20
  85. help
  86. Set the GPIO number used by SPI SCLK.
  87. config EXAMPLE_ETH_SPI_MOSI_GPIO
  88. int "SPI MOSI GPIO number"
  89. range 0 33
  90. default 19
  91. help
  92. Set the GPIO number used by SPI MOSI.
  93. config EXAMPLE_ETH_SPI_MISO_GPIO
  94. int "SPI MISO GPIO number"
  95. range 0 33
  96. default 18
  97. help
  98. Set the GPIO number used by SPI MISO.
  99. config EXAMPLE_ETH_SPI_CS_GPIO
  100. int "SPI CS GPIO number"
  101. range 0 33
  102. default 21
  103. help
  104. Set the GPIO number used by SPI CS.
  105. config EXAMPLE_ETH_SPI_CLOCK_MHZ
  106. int "SPI clock speed (MHz)"
  107. range 5 80
  108. default 36
  109. help
  110. Set the clock speed (MHz) of SPI interface.
  111. config EXAMPLE_ETH_SPI_INT_GPIO
  112. int "Interrupt GPIO number"
  113. default 4
  114. help
  115. Set the GPIO number used by the SPI Ethernet module interrupt line.
  116. endif # EXAMPLE_USE_SPI_ETHERNET
  117. config EXAMPLE_ETH_PHY_RST_GPIO
  118. int "PHY Reset GPIO number"
  119. default 5
  120. help
  121. Set the GPIO number used to reset PHY chip.
  122. Set to -1 to disable PHY chip hardware reset.
  123. config EXAMPLE_ETH_PHY_ADDR
  124. int "PHY Address"
  125. range 0 31
  126. default 1
  127. help
  128. Set PHY address according your board schematic.
  129. endmenu