Merge pull request #12816 from Jason2866/Core302

Arduino Core 3.0.2
This commit is contained in:
Theo Arends 2021-08-03 14:50:27 +02:00 committed by GitHub
commit a538e4e589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 9 deletions

View File

@ -22,7 +22,11 @@
#ifdef ESP32
#include "driver/i2s.h"
#elif defined(ARDUINO_ARCH_RP2040) || defined(ESP8266)
#include <i2s.h>
#ifdef ARDUINO_ESP8266_MAJOR //this define was added in ESP8266 Arduino Core version v3.0.1
#include "core_esp8266_i2s.h" //for Arduino core >= 3.0.1
#else
#include "i2s.h" //for Arduino core <= 3.0.0
#endif
#endif
#include "AudioOutputI2S.h"

View File

@ -22,7 +22,11 @@
#ifdef ESP32
#include "driver/i2s.h"
#elif defined(ARDUINO_ARCH_RP2040) || defined(ESP8266)
#include <i2s.h>
#ifdef ARDUINO_ESP8266_MAJOR //this define was added in ESP8266 Arduino Core version v3.0.1
#include "core_esp8266_i2s.h" //for Arduino core >= 3.0.1
#else
#include "i2s.h" //for Arduino core <= 3.0.0
#endif
#endif
#include "AudioOutputI2SNoDAC.h"

View File

@ -37,13 +37,13 @@ extern "C"
#include "Arduino.h"
#include "osapi.h"
#include "ets_sys.h"
#include "i2s_reg.h"
#ifndef ARDUINO_ESP8266_RELEASE_3_0_1
#include "i2s.h"
#else
#include "core_esp8266_i2s.h"
#ifdef ARDUINO_ESP8266_MAJOR //this define was added in ESP8266 Arduino Core version v3.0.1
#include "core_esp8266_i2s.h" //for Arduino core >= 3.0.1
#else
#include "i2s.h" //for Arduino core <= 3.0.0
#endif
#include "eagle_soc.h"
#include "esp8266_peri.h"
#include "slc_register.h"

View File

@ -6,8 +6,8 @@
;build_flags = ${core_dev.build_flags}
[core_dev]
; *** Esp8266 core for Arduino 3.0.1
platform = espressif8266 @ 3.1.0
; *** Esp8266 core for Arduino 3.0.2
platform = https://github.com/platformio/platform-espressif8266.git
platform_packages =
build_unflags = ${esp_defaults.build_unflags}
-Wswitch-unreachable