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

Commit b6a455f

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 5489666 commit b6a455f

File tree

12 files changed

+72
-48
lines changed

12 files changed

+72
-48
lines changed

examples/HTTPClient/BasicAuthGet/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/HTTPClient/CustomHeader/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/HTTPClient/DweetGet/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/HTTPClient/DweetPost/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/HTTPClient/HueBlink/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/HTTPClient/PostWithHeaders/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/HTTPClient/SimpleDelete/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/HTTPClient/SimpleGet/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/HTTPClient/SimpleHTTPExample/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/HTTPClient/SimplePost/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)