Skip to content

Commit

Permalink
Merge pull request letscontrolit#5198 from TD-er/feature/esp32P4
Browse files Browse the repository at this point in the history
[ESP32P4] ESP32-P4 does not use GPIO pins to access flash/PSRAM
  • Loading branch information
TD-er authored Dec 30, 2024
2 parents ef0a96b + 7638d61 commit c271ad2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/source/ESPEasy/ESPchips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 10 additions & 14 deletions src/src/Helpers/Hardware_GPIO_ESP32P4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c271ad2

Please sign in to comment.