added SPI ethernet depends on SPI bus

This commit is contained in:
Bogdan Pilyugin 2022-08-21 13:48:57 +02:00
parent 733e758d7e
commit b0eab9fa1c
2 changed files with 5 additions and 3 deletions

View File

@ -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).

View File

@ -19,6 +19,8 @@
* Description:
*/
#include "SystemConfiguration.h"
#include <stdio.h>
#include <string.h>
@ -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 };