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
|
||||
bool "SPI Ethernet"
|
||||
default y
|
||||
select ETH_USE_SPI_ETHERNET
|
||||
select WEBGUIAPP_SPI_ENABLE
|
||||
help
|
||||
Use external SPI-Ethernet module(s).
|
||||
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user