diff --git a/bin/platformio-custom.py b/bin/platformio-custom.py index 799230cf28..31f6476cc9 100644 --- a/bin/platformio-custom.py +++ b/bin/platformio-custom.py @@ -86,12 +86,6 @@ def esp32_create_combined_bin(source, target, env): lb.env.Append(CPPDEFINES=[("QUIRK_RTTTL", 1)]) elif lb.name == "LovyanGFX": lb.env.Append(CPPDEFINES=[("QUIRK_LOVYAN", 1)]) - elif lb.name == "ESP8266Audio": - lb.env.Append(CPPDEFINES=[("QUIRK_ESP8266_AUDIO", 1)]) - framework_path = env.PioPlatform().get_package_dir( - "framework-arduinoespressif32" - ) - lb.env.Append(CXXFLAGS=["-I" + framework_path + "/libraries/WiFi/src"]) Import("projenv") diff --git a/src/platform/esp32/iram-quirk.c b/src/platform/esp32/iram-quirk.c index 2b23053b30..c0128ade3f 100644 --- a/src/platform/esp32/iram-quirk.c +++ b/src/platform/esp32/iram-quirk.c @@ -4,6 +4,7 @@ #include #include +#include #include #define IRAM_SECTION section(".iram1.stub") @@ -24,8 +25,5 @@ extern const spi_flash_chip_t __wrap_esp_flash_chip_winbond __attribute__((IRAM_ IRAM_ATTR __attribute__((noreturn)) void __wrap_abort(void) { - // from components/bootloader_support/src/bootloader_panic.c - esp_rom_printf("abort() was called at PC 0x%08x\r\n", (intptr_t)__builtin_return_address(0) - 3); - while (1) { - } + esp_system_abort("abort() was called"); } \ No newline at end of file diff --git a/src/platform/esp32/quirks.h b/src/platform/esp32/quirks.h index b4858a3467..bc8ee3a5ef 100644 --- a/src/platform/esp32/quirks.h +++ b/src/platform/esp32/quirks.h @@ -1,4 +1,4 @@ -#if QUIRK_RTTTL || QUIRK_LOVYAN +#if QUIRK_RTTTL #define ledcSetup(ch, freq, res) \ uint32_t __freq = freq; \ uint8_t __res = res; \ @@ -7,30 +7,10 @@ #define ledcAttachPin(pin, ch) ledcAttachChannel(pin, __freq, __res, ch) #endif -#if QUIRK_LOVYAN -#include - -#include "esp_heap_caps.h" -#include "multi_heap.h" - +#if QUIRK_LOVYAN // for chatter2 and m5stack-core #include "rom/ets_sys.h" -#include "rom/gpio.h" -#include "soc/gpio_struct.h" -#include "soc/spi_periph.h" -#include "soc/spi_reg.h" - +#include #undef bool #undef true #undef false #endif - -#if QUIRK_ESP8266_AUDIO -#ifdef __cplusplus -#include "WiFi.h" -#endif -#include "esp_chip_info.h" -#include "soc/rtc_cntl_reg.h" -#include "soc/rtc_io_reg.h" -#define rtc_clk_apll_enable(...) -#define I2S_MCLK_MULTIPLE_DEFAULT I2S_MCLK_MULTIPLE_128 -#endif \ No newline at end of file diff --git a/variants/t-deck/platformio.ini b/variants/t-deck/platformio.ini index 6c02580cbe..796f3123c5 100644 --- a/variants/t-deck/platformio.ini +++ b/variants/t-deck/platformio.ini @@ -15,5 +15,6 @@ build_flags = ${esp32s3_base.build_flags} lib_deps = ${esp32s3_base.lib_deps} lovyan03/LovyanGFX@^1.1.9 - earlephilhower/ESP8266Audio@^1.9.7 + # TODO change to ESP8266Audio@^1.9.8 when this version propagates to platformio registry + https://github.com/earlephilhower/ESP8266Audio#c93201483fa2a15a36ccb6296b2b9382ddfa3000 earlephilhower/ESP8266SAM@^1.0.1 \ No newline at end of file diff --git a/variants/t-watch-s3/platformio.ini b/variants/t-watch-s3/platformio.ini index d8ab50ca7e..45609bfcef 100644 --- a/variants/t-watch-s3/platformio.ini +++ b/variants/t-watch-s3/platformio.ini @@ -14,5 +14,6 @@ lib_deps = ${esp32s3_base.lib_deps} lovyan03/LovyanGFX@^1.1.9 lewisxhe/PCF8563_Library@1.0.1 adafruit/Adafruit DRV2605 Library@^1.2.2 - earlephilhower/ESP8266Audio@^1.9.7 + # TODO change to ESP8266Audio@^1.9.8 when this version propagates to platformio registry + https://github.com/earlephilhower/ESP8266Audio#c93201483fa2a15a36ccb6296b2b9382ddfa3000 earlephilhower/ESP8266SAM@^1.0.1 \ No newline at end of file