forked from espressif/esp-idf
Update default pins for ESP32H4
Update default pins for ENC28J60 example
This commit is contained in:
committed by
David Čermák
parent
592949c716
commit
8868bf5c64
@@ -142,6 +142,7 @@ menu "Example Ethernet Configuration"
|
|||||||
default 14 if IDF_TARGET_ESP32
|
default 14 if IDF_TARGET_ESP32
|
||||||
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
default 4 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI SCLK.
|
Set the GPIO number used by SPI SCLK.
|
||||||
|
|
||||||
@@ -151,6 +152,7 @@ menu "Example Ethernet Configuration"
|
|||||||
default 13 if IDF_TARGET_ESP32
|
default 13 if IDF_TARGET_ESP32
|
||||||
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
default 5 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MOSI.
|
Set the GPIO number used by SPI MOSI.
|
||||||
|
|
||||||
@@ -160,13 +162,14 @@ menu "Example Ethernet Configuration"
|
|||||||
default 12 if IDF_TARGET_ESP32
|
default 12 if IDF_TARGET_ESP32
|
||||||
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
default 0 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MISO.
|
Set the GPIO number used by SPI MISO.
|
||||||
|
|
||||||
config EXAMPLE_ETH_SPI_CLOCK_MHZ
|
config EXAMPLE_ETH_SPI_CLOCK_MHZ
|
||||||
int "SPI clock speed (MHz)"
|
int "SPI clock speed (MHz)"
|
||||||
range 5 80
|
range 5 80
|
||||||
default 12 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 12 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32H4
|
||||||
default 36 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 36 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
help
|
help
|
||||||
Set the clock speed (MHz) of SPI interface.
|
Set the clock speed (MHz) of SPI interface.
|
||||||
@@ -176,6 +179,7 @@ menu "Example Ethernet Configuration"
|
|||||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
||||||
default 15 if IDF_TARGET_ESP32
|
default 15 if IDF_TARGET_ESP32
|
||||||
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
||||||
|
default 1 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI CS0, i.e. Chip Select associated with the first SPI Eth module).
|
Set the GPIO number used by SPI CS0, i.e. Chip Select associated with the first SPI Eth module).
|
||||||
|
|
||||||
@@ -187,6 +191,7 @@ menu "Example Ethernet Configuration"
|
|||||||
default 7 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 7 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 8 if IDF_TARGET_ESP32C3
|
default 8 if IDF_TARGET_ESP32C3
|
||||||
default 3 if IDF_TARGET_ESP32C2
|
default 3 if IDF_TARGET_ESP32C2
|
||||||
|
default 11 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI CS1, i.e. Chip Select associated with the second SPI Eth module.
|
Set the GPIO number used by SPI CS1, i.e. Chip Select associated with the second SPI Eth module.
|
||||||
|
|
||||||
@@ -195,6 +200,7 @@ menu "Example Ethernet Configuration"
|
|||||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
||||||
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
||||||
default 4 if IDF_TARGET_ESP32C2
|
default 4 if IDF_TARGET_ESP32C2
|
||||||
|
default 9 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by the first SPI Ethernet module interrupt line.
|
Set the GPIO number used by the first SPI Ethernet module interrupt line.
|
||||||
|
|
||||||
@@ -204,6 +210,7 @@ menu "Example Ethernet Configuration"
|
|||||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
||||||
default 33 if IDF_TARGET_ESP32
|
default 33 if IDF_TARGET_ESP32
|
||||||
default 5 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
default 5 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
||||||
|
default 10 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by the second SPI Ethernet module interrupt line.
|
Set the GPIO number used by the second SPI Ethernet module interrupt line.
|
||||||
|
|
||||||
|
@@ -15,6 +15,7 @@ menu "Example Configuration"
|
|||||||
default 14 if IDF_TARGET_ESP32
|
default 14 if IDF_TARGET_ESP32
|
||||||
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
default 4 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI SCLK.
|
Set the GPIO number used by SPI SCLK.
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@ menu "Example Configuration"
|
|||||||
default 13 if IDF_TARGET_ESP32
|
default 13 if IDF_TARGET_ESP32
|
||||||
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
default 5 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MOSI.
|
Set the GPIO number used by SPI MOSI.
|
||||||
|
|
||||||
@@ -33,6 +35,7 @@ menu "Example Configuration"
|
|||||||
default 12 if IDF_TARGET_ESP32
|
default 12 if IDF_TARGET_ESP32
|
||||||
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
|
||||||
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
default 0 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MISO.
|
Set the GPIO number used by SPI MISO.
|
||||||
|
|
||||||
@@ -41,6 +44,7 @@ menu "Example Configuration"
|
|||||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
||||||
default 15 if IDF_TARGET_ESP32
|
default 15 if IDF_TARGET_ESP32
|
||||||
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
|
||||||
|
default 1 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI CS.
|
Set the GPIO number used by SPI CS.
|
||||||
|
|
||||||
@@ -56,6 +60,7 @@ menu "Example Configuration"
|
|||||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
|
||||||
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
|
||||||
default 4 if IDF_TARGET_ESP32C2
|
default 4 if IDF_TARGET_ESP32C2
|
||||||
|
default 9 if IDF_TARGET_ESP32H4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by ENC28J60 interrupt.
|
Set the GPIO number used by ENC28J60 interrupt.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user