Fix ESP32 Ethernet using EthClockMode 3 (#22248)

This commit is contained in:
Theo Arends 2024-10-09 17:31:33 +02:00
parent 1a5e6db02d
commit f8fbe15300
3 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file.
- ESP32-S3 uDisplay force cache writes to RGB display (#22222)
- ESP32 Dali compile error with core 3.x (#22214)
- Dali received data decoding
- ESP32 Ethernet using EthClockMode 3 (#22248)
### Removed

View File

@ -176,6 +176,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- Zigbee flashing CC2562P with latest firmware [#22117](https://github.com/arendst/Tasmota/issues/22117)
- ESP32 Range Extender compile error with core 3.x [#22205](https://github.com/arendst/Tasmota/issues/22205)
- ESP32 Dali compile error with core 3.x [#22214](https://github.com/arendst/Tasmota/issues/22214)
- ESP32 Ethernet using EthClockMode 3 [#22248](https://github.com/arendst/Tasmota/issues/22248)
- Berry avoid `readbytes()` from crashing when file is too large [#22057](https://github.com/arendst/Tasmota/issues/22057)
- Berry energy missing attributes [#22116](https://github.com/arendst/Tasmota/issues/22116)
- Berry I2C to prepare M5Stack I2C STM32 based devices [#22143](https://github.com/arendst/Tasmota/issues/22143)

View File

@ -396,6 +396,11 @@ LList<char*> backlog; // Command backlog implemented with
* Main
\*********************************************************************************************/
#ifdef ESP32
// IDF5.3 fix esp_gpio_reserve used in init PSRAM. Needed by Tasmota.ino esp_gpio_revoke
#include "esp_private/esp_gpio_reserve.h"
#endif // ESP32
void setup(void) {
#ifdef ESP32
#ifdef CONFIG_IDF_TARGET_ESP32
@ -409,6 +414,7 @@ void setup(void) {
// test if the CPU is not pico
uint32_t pkg_version = bootloader_common_get_chip_ver_pkg();
if (pkg_version <= 3) { // D0WD, S0WD, D2WD
esp_gpio_revoke(0xFFFFFFFFFFFFFFFF); // Revoke all GPIO's some of them set by init PSRAM in IDF
gpio_reset_pin(GPIO_NUM_16);
gpio_reset_pin(GPIO_NUM_17);
}