menu "esp_eth TEST_APPS Configuration" choice TARGET_ETH_CONFIG prompt "Ethernet peripheral device" default TARGET_USE_INTERNAL_ETHERNET help Select type of Ethernet interface. config TARGET_USE_INTERNAL_ETHERNET depends on SOC_EMAC_SUPPORTED select ETH_USE_ESP32_EMAC bool "Internal EMAC" help Use internal Ethernet MAC controller. config TARGET_USE_SPI_ETHERNET bool "SPI Ethernet" select ETH_USE_SPI_ETHERNET help Use external SPI-Ethernet module(s). endchoice # TARGET_ETH_CONFIG if TARGET_USE_INTERNAL_ETHERNET choice TARGET_ETH_PHY_DEVICE prompt "Ethernet PHY" default TARGET_ETH_PHY_DEVICE_IP101 help Select one of the devices listed here config TARGET_ETH_PHY_DEVICE_IP101 bool "IP101" config TARGET_ETH_PHY_DEVICE_LAN87XX bool "LAN8720" config TARGET_ETH_PHY_DEVICE_KSZ80XX bool "KSZ80xx" config TARGET_ETH_PHY_DEVICE_RTL8201 bool "RTL8201" config TARGET_ETH_PHY_DEVICE_DP83848 bool "DP83848" endchoice # TARGET_ETH_PHY_DEVICE config TARGET_USE_DEFAULT_EMAC_CONFIG default y bool "Use default EMAC config" if !TARGET_USE_DEFAULT_EMAC_CONFIG config TARGET_IO_MDC int "SMI MDC GPIO number" default 23 config TARGET_IO_MDIO int "SMI MDIO GPIO number" default 18 endif endif # TARGET_USE_INTERNAL_ETHERNET if TARGET_USE_SPI_ETHERNET choice TARGET_ETH_SPI_DEVICE prompt "Ethernet SPI Module" default TARGET_ETH_PHY_DEVICE_W5500 help Select one of the devices listed here config TARGET_ETH_PHY_DEVICE_W5500 bool "W5500" select ETH_SPI_ETHERNET_W5500 config TARGET_ETH_PHY_DEVICE_KSZ8851SNL bool "KSZ8851SNL" select ETH_SPI_ETHERNET_KSZ8851SNL config TARGET_ETH_PHY_DEVICE_DM9051 bool "DM9051" select ETH_SPI_ETHERNET_DM9051 endchoice # TARGET_ETH_SPI_DEVICE config TARGET_SPI_CLOCK_MHZ int "SPI clock speed (MHz)" range 5 80 default 12 help Set the clock speed (MHz) of SPI interface. endif # TARGET_USE_SPI_ETHERNET endmenu