added SPI ethernet depends on SPI bus
This commit is contained in:
parent
733e758d7e
commit
b0eab9fa1c
2
Kconfig
2
Kconfig
|
|
@ -279,7 +279,7 @@ menu "WebGuiApp configuration"
|
||||||
config USE_SPI_ETHERNET
|
config USE_SPI_ETHERNET
|
||||||
bool "SPI Ethernet"
|
bool "SPI Ethernet"
|
||||||
default y
|
default y
|
||||||
select ETH_USE_SPI_ETHERNET
|
select WEBGUIAPP_SPI_ENABLE
|
||||||
help
|
help
|
||||||
Use external SPI-Ethernet module(s).
|
Use external SPI-Ethernet module(s).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@
|
||||||
* Description:
|
* Description:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "SystemConfiguration.h"
|
#include "SystemConfiguration.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -33,8 +35,8 @@
|
||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
#if CONFIG_ETH_USE_SPI_ETHERNET
|
#if CONFIG_ETH_USE_SPI_ETHERNET
|
||||||
#include "driver/spi_master.h"
|
#include "driver/spi_master.h"
|
||||||
#endif // CONFIG_ETH_USE_SPI_ETHERNET
|
#endif
|
||||||
//#include "PortExtender.h"
|
|
||||||
|
|
||||||
static const char *TAG = "EthTransport";
|
static const char *TAG = "EthTransport";
|
||||||
esp_netif_t *eth_netif_spi[CONFIG_SPI_ETHERNETS_NUM] = { NULL };
|
esp_netif_t *eth_netif_spi[CONFIG_SPI_ETHERNETS_NUM] = { NULL };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user