Add ENC28J60 Ethernet Driver

Merges https://github.com/espressif/esp-idf/pull/4435
This commit is contained in:
Henry Gilbert
2019-11-27 09:24:05 -07:00
committed by suda-morris
parent 966f4227ad
commit eda07acc81
7 changed files with 1559 additions and 5 deletions

View File

@@ -18,7 +18,14 @@ menu "Example Configuration"
select ETH_USE_SPI_ETHERNET
select ETH_SPI_ETHERNET_DM9051
help
Select external SPI-Ethernet module.
Select external SPI-Ethernet module (DM9051).
config EXAMPLE_USE_ENC28J60
bool "ENC28J60 Module"
select ETH_USE_SPI_ETHERNET
select ETH_SPI_ETHERNET_ENC28J60
help
Select external SPI-Ethernet module (ENC28J60).
endchoice
if EXAMPLE_USE_INTERNAL_ETHERNET
@@ -72,7 +79,7 @@ menu "Example Configuration"
range 0 2
default 1
help
Set the SPI host used to communicate with DM9051.
Set the SPI host used to communicate with the SPI Ethernet Controller.
config EXAMPLE_DM9051_SCLK_GPIO
int "SPI SCLK GPIO number"
@@ -104,7 +111,7 @@ menu "Example Configuration"
config EXAMPLE_DM9051_SPI_CLOCK_MHZ
int "SPI clock speed (MHz)"
range 20 80
range 5 80
default 20
help
Set the clock speed (MHz) of SPI interface.