mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ae2da1e235
Resolved possible race conditions when accessing registers in different banks. Added Tx ready semaphore when requesting packet to transmit (ENC is slow => access to it needs to be controlled). Added setting of CS hold time based on Data sheet. Added option to set the ENC28J60 to Full Duplex mode. Addressed several ENC28J60 Erratas. Restructured ENC28J60 example folder structure so the driver could be easily linked from different projects. Extended the README to guide users of how to properly use the ENC28J60 chip. Extended iperf example to include ENC28J60. Closes https://github.com/espressif/esp-idf/issues/4747 Closes https://github.com/espressif/esp-idf/issues/7117 Closes https://github.com/espressif/esp-idf/issues/7156
69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
menu "Example Configuration"
|
|
|
|
config EXAMPLE_ENC28J60_SPI_HOST
|
|
int "SPI Host Number"
|
|
range 0 2
|
|
default 1
|
|
help
|
|
Set the SPI host used to communicate with the SPI Ethernet Controller.
|
|
|
|
config EXAMPLE_ENC28J60_SCLK_GPIO
|
|
int "SPI SCLK GPIO number"
|
|
range 0 33
|
|
default 19
|
|
help
|
|
Set the GPIO number used by SPI SCLK.
|
|
|
|
config EXAMPLE_ENC28J60_MOSI_GPIO
|
|
int "SPI MOSI GPIO number"
|
|
range 0 33
|
|
default 23
|
|
help
|
|
Set the GPIO number used by SPI MOSI.
|
|
|
|
config EXAMPLE_ENC28J60_MISO_GPIO
|
|
int "SPI MISO GPIO number"
|
|
range 0 33
|
|
default 25
|
|
help
|
|
Set the GPIO number used by SPI MISO.
|
|
|
|
config EXAMPLE_ENC28J60_CS_GPIO
|
|
int "SPI CS GPIO number"
|
|
range 0 33
|
|
default 22
|
|
help
|
|
Set the GPIO number used by SPI CS.
|
|
|
|
config EXAMPLE_ENC28J60_SPI_CLOCK_MHZ
|
|
int "SPI clock speed (MHz)"
|
|
range 5 20
|
|
default 8
|
|
help
|
|
Set the clock speed (MHz) of SPI interface.
|
|
|
|
config EXAMPLE_ENC28J60_INT_GPIO
|
|
int "Interrupt GPIO number"
|
|
default 4
|
|
help
|
|
Set the GPIO number used by ENC28J60 interrupt.
|
|
|
|
choice EXAMPLE_ENC28J60_DUPLEX_MODE
|
|
prompt "Duplex Mode"
|
|
default EXAMPLE_ENC28J60_DUPLEX_HALF
|
|
help
|
|
Select ENC28J60 Duplex operation mode.
|
|
|
|
config EXAMPLE_ENC28J60_DUPLEX_FULL
|
|
bool "Full Duplex"
|
|
help
|
|
Set ENC28J60 to Full Duplex mode. Do not forget to manually set the remote node (switch, router
|
|
or Ethernet controller) to full-duplex operation mode too.
|
|
|
|
config EXAMPLE_ENC28J60_DUPLEX_HALF
|
|
bool "Half Duplex"
|
|
help
|
|
Set ENC28J60 to Half Duplex mode.
|
|
endchoice # EXAMPLE_ENC28J60_DUPLEX_MODE
|
|
endmenu
|