2020-01-09 06:32:51 -05:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2022-04-20 05:02:26 -04:00
|
|
|
orsource "$IDF_PATH/examples/common_components/env_caps/$IDF_TARGET/Kconfig.env_caps"
|
2021-08-13 10:50:39 -04:00
|
|
|
|
2020-01-09 06:32:51 -05:00
|
|
|
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"
|
2022-04-20 05:02:26 -04:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
2021-08-13 10:50:39 -04:00
|
|
|
default 14 if IDF_TARGET_ESP32
|
|
|
|
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
2023-05-09 06:21:09 -04:00
|
|
|
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
|
2023-04-13 05:06:40 -04:00
|
|
|
default 4 if IDF_TARGET_ESP32H2
|
2024-03-04 10:23:40 -05:00
|
|
|
default 33 if IDF_TARGET_ESP32P4
|
2020-01-09 06:32:51 -05:00
|
|
|
help
|
|
|
|
Set the GPIO number used by SPI SCLK.
|
|
|
|
|
|
|
|
config EXAMPLE_ENC28J60_MOSI_GPIO
|
|
|
|
int "SPI MOSI GPIO number"
|
2022-04-20 05:02:26 -04:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
2021-08-13 10:50:39 -04:00
|
|
|
default 13 if IDF_TARGET_ESP32
|
|
|
|
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
2023-05-09 06:21:09 -04:00
|
|
|
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
|
2023-04-13 05:06:40 -04:00
|
|
|
default 5 if IDF_TARGET_ESP32H2
|
2024-03-04 10:23:40 -05:00
|
|
|
default 32 if IDF_TARGET_ESP32P4
|
2020-01-09 06:32:51 -05:00
|
|
|
help
|
|
|
|
Set the GPIO number used by SPI MOSI.
|
|
|
|
|
|
|
|
config EXAMPLE_ENC28J60_MISO_GPIO
|
|
|
|
int "SPI MISO GPIO number"
|
2022-04-20 05:02:26 -04:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2021-08-13 10:50:39 -04:00
|
|
|
default 12 if IDF_TARGET_ESP32
|
|
|
|
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
2023-05-09 06:21:09 -04:00
|
|
|
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
|
2023-04-13 05:06:40 -04:00
|
|
|
default 0 if IDF_TARGET_ESP32H2
|
2024-03-04 10:23:40 -05:00
|
|
|
default 52 if IDF_TARGET_ESP32P4
|
2020-01-09 06:32:51 -05:00
|
|
|
help
|
|
|
|
Set the GPIO number used by SPI MISO.
|
|
|
|
|
|
|
|
config EXAMPLE_ENC28J60_CS_GPIO
|
|
|
|
int "SPI CS GPIO number"
|
2022-04-20 05:02:26 -04:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
2021-08-13 10:50:39 -04:00
|
|
|
default 15 if IDF_TARGET_ESP32
|
2022-07-22 11:13:04 -04:00
|
|
|
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
2023-05-09 06:21:09 -04:00
|
|
|
default 3 if IDF_TARGET_ESP32C6
|
2023-04-13 05:06:40 -04:00
|
|
|
default 1 if IDF_TARGET_ESP32H2
|
2024-03-04 10:23:40 -05:00
|
|
|
default 53 if IDF_TARGET_ESP32P4
|
2020-01-09 06:32:51 -05:00
|
|
|
help
|
|
|
|
Set the GPIO number used by SPI CS.
|
|
|
|
|
|
|
|
config EXAMPLE_ENC28J60_SPI_CLOCK_MHZ
|
|
|
|
int "SPI clock speed (MHz)"
|
|
|
|
range 5 20
|
2021-07-06 02:14:55 -04:00
|
|
|
default 8
|
2020-01-09 06:32:51 -05:00
|
|
|
help
|
|
|
|
Set the clock speed (MHz) of SPI interface.
|
|
|
|
|
|
|
|
config EXAMPLE_ENC28J60_INT_GPIO
|
|
|
|
int "Interrupt GPIO number"
|
2022-04-20 05:02:26 -04:00
|
|
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
2021-08-13 10:50:39 -04:00
|
|
|
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
2023-05-09 06:21:09 -04:00
|
|
|
default 4 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
|
|
|
|
default 10 if IDF_TARGET_ESP32H2
|
2024-03-04 10:23:40 -05:00
|
|
|
default 48 if IDF_TARGET_ESP32P4
|
2020-01-09 06:32:51 -05:00
|
|
|
help
|
|
|
|
Set the GPIO number used by ENC28J60 interrupt.
|
2021-07-06 02:14:55 -04:00
|
|
|
|
|
|
|
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
|
2020-01-09 06:32:51 -05:00
|
|
|
endmenu
|