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