From b0eab9fa1c6337a543e9bff8ffc71684da4fa796 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 21 Aug 2022 13:48:57 +0200 Subject: [PATCH] added SPI ethernet depends on SPI bus --- Kconfig | 2 +- src/ETHTransport.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Kconfig b/Kconfig index e09fff2..21b6591 100644 --- a/Kconfig +++ b/Kconfig @@ -279,7 +279,7 @@ menu "WebGuiApp configuration" config USE_SPI_ETHERNET bool "SPI Ethernet" default y - select ETH_USE_SPI_ETHERNET + select WEBGUIAPP_SPI_ENABLE help Use external SPI-Ethernet module(s). diff --git a/src/ETHTransport.c b/src/ETHTransport.c index a00389f..498eac6 100644 --- a/src/ETHTransport.c +++ b/src/ETHTransport.c @@ -19,6 +19,8 @@ * Description: */ + + #include "SystemConfiguration.h" #include #include @@ -33,8 +35,8 @@ #include "sdkconfig.h" #if CONFIG_ETH_USE_SPI_ETHERNET #include "driver/spi_master.h" -#endif // CONFIG_ETH_USE_SPI_ETHERNET -//#include "PortExtender.h" +#endif + static const char *TAG = "EthTransport"; esp_netif_t *eth_netif_spi[CONFIG_SPI_ETHERNETS_NUM] = { NULL };