[ethernet] Keep CONFIG_ETH_SPI_ETHERNET_* in defines.h for static analysis

On IDF 5.x, the ESP-IDF headers use CONFIG_ETH_SPI_ETHERNET_W5500 and
CONFIG_ETH_SPI_ETHERNET_DM9051 to conditionally expose the W5500/DM9051
types. Static analysis (clang-tidy) needs both the new USE_ETHERNET_*
defines and the old CONFIG_* defines to resolve all symbols.
This commit is contained in:
J. Nick Koston
2026-03-15 17:57:52 -10:00
parent d4bce7f042
commit b7960ee19b
+2
View File
@@ -283,6 +283,8 @@
#define USE_ETHERNET_OPENETH
#define USE_ETHERNET_W5500
#define USE_ETHERNET_DM9051
#define CONFIG_ETH_SPI_ETHERNET_W5500 1
#define CONFIG_ETH_SPI_ETHERNET_DM9051 1
#define CONFIG_ETH_USE_ESP32_EMAC 1
#define USE_ETHERNET_MANUAL_IP
#define USE_ETHERNET_IP_STATE_LISTENERS