Kconfig.projbuild 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. menu "Example Configuration"
  2. choice EXAMPLE_USE_ETHERNET
  3. prompt "Ethernet Type"
  4. default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32
  5. default EXAMPLE_USE_SPI_ETHERNET if !IDF_TARGET_ESP32
  6. help
  7. Select which kind of Ethernet will be used in the example.
  8. config EXAMPLE_USE_INTERNAL_ETHERNET
  9. depends on IDF_TARGET_ESP32
  10. select ETH_USE_ESP32_EMAC
  11. bool "Internal EMAC"
  12. help
  13. Select internal Ethernet MAC controller.
  14. config EXAMPLE_USE_SPI_ETHERNET
  15. bool "SPI Ethernet Module"
  16. select ETH_USE_SPI_ETHERNET
  17. help
  18. Select external SPI-Ethernet module.
  19. endchoice
  20. if EXAMPLE_USE_INTERNAL_ETHERNET
  21. choice EXAMPLE_ETH_PHY_MODEL
  22. prompt "Ethernet PHY Device"
  23. default EXAMPLE_ETH_PHY_IP101
  24. help
  25. Select the Ethernet PHY device to use in the example.
  26. config EXAMPLE_ETH_PHY_IP101
  27. bool "IP101"
  28. help
  29. IP101 is a single port 10/100 MII/RMII/TP/Fiber Fast Ethernet Transceiver.
  30. Goto http://www.icplus.com.tw/pp-IP101G.html for more information about it.
  31. config EXAMPLE_ETH_PHY_RTL8201
  32. bool "RTL8201/SR8201"
  33. help
  34. RTL8201F/SR8201F is a single port 10/100Mb Ethernet Transceiver with auto MDIX.
  35. Goto http://www.corechip-sz.com/productsview.asp?id=22 for more information about it.
  36. config EXAMPLE_ETH_PHY_LAN8720
  37. bool "LAN8720"
  38. help
  39. LAN8720A is a small footprint RMII 10/100 Ethernet Transceiver with HP Auto-MDIX Support.
  40. Goto https://www.microchip.com/LAN8720A for more information about it.
  41. config EXAMPLE_ETH_PHY_DP83848
  42. bool "DP83848"
  43. help
  44. DP83848 is a single port 10/100Mb/s Ethernet Physical Layer Transceiver.
  45. Goto http://www.ti.com/product/DP83848J for more information about it.
  46. endchoice
  47. endif
  48. if EXAMPLE_USE_SPI_ETHERNET
  49. config EXAMPLE_ETH_SPI_HOST
  50. int "SPI Host Number"
  51. range 0 2
  52. default 1
  53. help
  54. Set the SPI host used to communicate with DM9051.
  55. config EXAMPLE_ETH_SCLK_GPIO
  56. int "SPI SCLK GPIO number"
  57. range 0 33
  58. default 19
  59. help
  60. Set the GPIO number used by SPI SCLK.
  61. config EXAMPLE_ETH_MOSI_GPIO
  62. int "SPI MOSI GPIO number"
  63. range 0 33
  64. default 23
  65. help
  66. Set the GPIO number used by SPI MOSI.
  67. config EXAMPLE_ETH_MISO_GPIO
  68. int "SPI MISO GPIO number"
  69. range 0 33
  70. default 25
  71. help
  72. Set the GPIO number used by SPI MISO.
  73. config EXAMPLE_ETH_CS_GPIO
  74. int "SPI CS GPIO number"
  75. range 0 33
  76. default 22
  77. help
  78. Set the GPIO number used by SPI CS.
  79. config EXAMPLE_ETH_SPI_CLOCK_MHZ
  80. int "SPI clock speed (MHz)"
  81. range 20 80
  82. default 20
  83. help
  84. Set the clock speed (MHz) of SPI interface.
  85. endif
  86. endmenu