Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 5489666

Browse files
authored
v1.10.0 for ESP32 core v2.0.6
### Releases v1.10.0 1. Fix compile errors for new ESP32 core `v2.0.6`
1 parent 7cb308d commit 5489666

File tree

23 files changed

+140
-94
lines changed

23 files changed

+140
-94
lines changed

examples/AWS_IoT/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/AdvancedWebServer/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/HelloServer/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/HelloServer2/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/HttpBasicAuth/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/MQTTClient_Auth/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/MQTTClient_Basic/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/MQTTClient_SSL/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/MQTTClient_SSL_Auth/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

examples/MQTTClient_SSL_Complex/defines.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,12 @@
445445
//#define USING_SPI2 true
446446

447447
#if USING_SPI2
448-
#define PIN_MISO HSPI_IOMUX_PIN_NUM_MISO
449-
#define PIN_MOSI HSPI_IOMUX_PIN_NUM_MOSI
450-
#define PIN_SCK HSPI_IOMUX_PIN_NUM_CLK
451-
#define PIN_SS HSPI_IOMUX_PIN_NUM_CS
448+
// HSPI_IOMUX_PIN_NUM_???? deprecated from core v2.0.6+
449+
// For ESP32 core v2.0.6+
450+
#define PIN_MISO SPI2_IOMUX_PIN_NUM_MISO
451+
#define PIN_MOSI SPI2_IOMUX_PIN_NUM_MOSI
452+
#define PIN_SCK SPI2_IOMUX_PIN_NUM_CLK
453+
#define PIN_SS SPI2_IOMUX_PIN_NUM_CS
452454

453455
#define SHIELD_TYPE "W5x00 using Ethernet_Generic Library on SPI2"
454456

0 commit comments

Comments
 (0)