Merge branch 'feature/p4_spi_eth' into 'master'

Ethernet Examples: added default GPIO for SPI

Closes IDF-8073 and IDF-7488

See merge request espressif/esp-idf!29407
This commit is contained in:
Ondrej Kosta 2024-03-05 17:57:02 +08:00
commit 131dfbef9b
2 changed files with 12 additions and 0 deletions

View File

@ -147,6 +147,7 @@ menu "Example Ethernet Configuration"
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 4 if IDF_TARGET_ESP32H2
default 33 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI SCLK.
@ -157,6 +158,7 @@ menu "Example Ethernet Configuration"
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 5 if IDF_TARGET_ESP32H2
default 32 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI MOSI.
@ -167,6 +169,7 @@ menu "Example Ethernet Configuration"
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 0 if IDF_TARGET_ESP32H2
default 52 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI MISO.
@ -184,6 +187,7 @@ menu "Example Ethernet Configuration"
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
default 3 if IDF_TARGET_ESP32C6
default 1 if IDF_TARGET_ESP32H2
default 53 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI CS0, i.e. Chip Select associated with the first SPI Eth module).
@ -197,6 +201,7 @@ menu "Example Ethernet Configuration"
default 21 if IDF_TARGET_ESP32C6
default 3 if IDF_TARGET_ESP32C2
default 11 if IDF_TARGET_ESP32H2
default 23 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI CS1, i.e. Chip Select associated with the second SPI Eth module.
@ -206,6 +211,7 @@ menu "Example Ethernet Configuration"
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
default 4 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 10 if IDF_TARGET_ESP32H2
default 48 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by the first SPI Ethernet module interrupt line.
Set -1 to use SPI Ethernet module in polling mode.
@ -218,6 +224,7 @@ menu "Example Ethernet Configuration"
default 5 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
default 5 if IDF_TARGET_ESP32C6
default 9 if IDF_TARGET_ESP32H2
default 47 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by the second SPI Ethernet module interrupt line.
Set -1 to use SPI Ethernet module in polling mode.

View File

@ -16,6 +16,7 @@ menu "Example Configuration"
default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 4 if IDF_TARGET_ESP32H2
default 33 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI SCLK.
@ -26,6 +27,7 @@ menu "Example Configuration"
default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 5 if IDF_TARGET_ESP32H2
default 32 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI MOSI.
@ -36,6 +38,7 @@ menu "Example Configuration"
default 13 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3
default 2 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 0 if IDF_TARGET_ESP32H2
default 52 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI MISO.
@ -46,6 +49,7 @@ menu "Example Configuration"
default 10 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C2
default 3 if IDF_TARGET_ESP32C6
default 1 if IDF_TARGET_ESP32H2
default 53 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by SPI CS.
@ -62,6 +66,7 @@ menu "Example Configuration"
default 4 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
default 4 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C6
default 10 if IDF_TARGET_ESP32H2
default 48 if IDF_TARGET_ESP32P4
help
Set the GPIO number used by ENC28J60 interrupt.