From 7638d61cb27fef4636a72e18f0728fa04e1d0eaf Mon Sep 17 00:00:00 2001 From: TD-er Date: Mon, 30 Dec 2024 01:30:02 +0100 Subject: [PATCH] [ESP32P4] ESP32-P4 does not use GPIO pins to access flash/PSRAM --- docs/source/ESPEasy/ESPchips.rst | 2 +- src/src/Helpers/Hardware_GPIO_ESP32P4.cpp | 24 ++++++++++------------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/docs/source/ESPEasy/ESPchips.rst b/docs/source/ESPEasy/ESPchips.rst index 821215873..f5cf06b70 100644 --- a/docs/source/ESPEasy/ESPchips.rst +++ b/docs/source/ESPEasy/ESPchips.rst @@ -297,7 +297,7 @@ ESPEasy does support a number of variants of the processors manufactured by Espr - 20, 21, 22, 24, 25, 26 - 20, 21, 22, 24, 25, 26 - - - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 + - N/A * - UART - 1.5 (Serial1 out only) - 3 diff --git a/src/src/Helpers/Hardware_GPIO_ESP32P4.cpp b/src/src/Helpers/Hardware_GPIO_ESP32P4.cpp index db98067ea..f906b166e 100644 --- a/src/src/Helpers/Hardware_GPIO_ESP32P4.cpp +++ b/src/src/Helpers/Hardware_GPIO_ESP32P4.cpp @@ -19,26 +19,22 @@ bool getGpioInfo(int gpio, int& pinnr, bool& input, bool& output, bool& warning) if ((gpio < 0) || !(GPIO_IS_VALID_GPIO(gpio))) { return false; } - - if (isFlashInterfacePin_ESPEasy(gpio)) { - // Connected to the integrated SPI flash. - input = false; - output = false; - warning = true; - } + // P4 does not use GPIO-pins for accessing flash or PSRAM # if FEATURE_ETHERNET // Check pins used for RMII Ethernet PHY if (NetworkMedium_t::Ethernet == Settings.NetworkMedium) { switch (gpio) { - case 0: - case 21: - case 19: - case 22: - case 25: - case 26: - case 27: + case 28: // RMII_RXDV + case 29: // RMII_RXD0 + case 30: // RMII_RXD1 + case 34: // RMII_TXD0 + case 35: // RMII_TXD1 + case 49: // RMII_TXEN + case 50: // RMII_CLK + case 51: // PHY_RSTN + case 52: // MDIO warning = true; break; }