-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/eth_test_all_chips' into 'master'
Ethernet related tests improvements Closes IDF-5387 See merge request espressif/esp-idf!20982
- Loading branch information
Showing
41 changed files
with
1,146 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
idf_component_register(SRCS "esp_eth_test.c" | ||
idf_component_register(SRCS "esp_eth_test_apps.c" | ||
"esp_eth_test_l2.c" | ||
"esp_eth_test_hal.c" | ||
"esp_eth_test_common.c" | ||
"esp_eth_test_main.c" | ||
INCLUDE_DIRS "." | ||
PRIV_INCLUDE_DIRS "." | ||
PRIV_REQUIRES unity esp_eth esp_netif) | ||
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") | ||
PRIV_REQUIRES unity test_utils esp_eth esp_netif esp_http_client | ||
EMBED_TXTFILES dl_espressif_com_root_cert.pem | ||
WHOLE_ARCHIVE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,70 @@ | ||
menu "esp_eth TEST_APPS Configuration" | ||
|
||
choice TARGET_ETH_PHY_DEVICE | ||
choice TARGET_ETH_CONFIG | ||
prompt "Ethernet peripheral device" | ||
default TARGET_ETH_PHY_DEVICE_IP101 | ||
default TARGET_USE_INTERNAL_ETHERNET | ||
help | ||
Select one of the devices listed here | ||
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 | ||
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 | ||
|
||
config TARGET_ETH_PHY_DEVICE_IP101 | ||
bool "IP101" | ||
config TARGET_ETH_PHY_DEVICE_LAN87XX | ||
bool "LAN8720" | ||
endchoice | ||
endmenu |
File renamed without changes.
Oops, something went wrong.