Kconfig.projbuild 4.6 KB

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