diff --git a/components/esp_eth/test/test_emac.c b/components/esp_eth/test/test_emac.c index b724c06eb3..2771cc01d9 100644 --- a/components/esp_eth/test/test_emac.c +++ b/components/esp_eth/test/test_emac.c @@ -14,8 +14,9 @@ #include "lwip/sockets.h" #include "ping/ping_sock.h" #include "esp32/rom/md5_hash.h" +#include "soc/soc_caps.h" -#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2) +#if SOC_EMAC_SUPPORTED static const char *TAG = "esp32_eth_test"; @@ -503,4 +504,4 @@ TEST_CASE("esp32 ethernet download test", "[ethernet][test_env=UT_T2_Ethernet][t vEventGroupDelete(eth_event_group); } -#endif \ No newline at end of file +#endif // SOC_EMAC_SUPPORTED \ No newline at end of file diff --git a/components/soc/soc/esp32/include/soc/soc_caps.h b/components/soc/soc/esp32/include/soc/soc_caps.h index bbc8e8f19f..283c7ae0c7 100644 --- a/components/soc/soc/esp32/include/soc/soc_caps.h +++ b/components/soc/soc/esp32/include/soc/soc_caps.h @@ -10,3 +10,4 @@ #define SOC_BT_SUPPORTED 1 #define SOC_SDIO_SLAVE_SUPPORTED 1 #define SOC_CAN_SUPPORTED 1 +#define SOC_EMAC_SUPPORTED 1