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

Commit 96221b8

Browse files
authored
v1.8.1 to add SPI1 support to RP2040
### Releases v1.8.1 1. Add support to SPI1 for RP2040 using [arduino-pico core](https://github.com/earlephilhower/arduino-pico) 2. Rewrite all the examples to support new features 3. Update `Packages' Patches`
1 parent ef34e83 commit 96221b8

26 files changed

+91
-39
lines changed

src/EthernetHttpClient_SSL.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_SSL-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
#pragma once

src/EthernetWebServer_SSL.h

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,20 +25,21 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
#pragma once
3132

3233
#ifndef ETHERNET_WEBSERVER_SSL_H
3334
#define ETHERNET_WEBSERVER_SSL_H
3435

35-
#define ETHERNET_WEBSERVER_SSL_VERSION "EthernetWebServer_SSL v1.8.0"
36+
#define ETHERNET_WEBSERVER_SSL_VERSION "EthernetWebServer_SSL v1.8.1"
3637

3738
#define ETHERNET_WEBSERVER_SSL_VERSION_MAJOR 1
3839
#define ETHERNET_WEBSERVER_SSL_VERSION_MINOR 8
39-
#define ETHERNET_WEBSERVER_SSL_VERSION_PATCH 0
40+
#define ETHERNET_WEBSERVER_SSL_VERSION_PATCH 1
4041

41-
#define ETHERNET_WEBSERVER_SSL_VERSION_INT 1008000
42+
#define ETHERNET_WEBSERVER_SSL_VERSION_INT 1008001
4243

4344
/////////////////////////////////////////////////////////////////////////
4445

@@ -53,18 +54,27 @@
5354
#endif
5455
#define USE_NEW_WEBSERVER_VERSION false
5556

56-
#warning Use mbed-portenta architecture for PORTENTA_H7 from EthernetWebServer_SSL
57+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
58+
#warning Use mbed-portenta architecture for PORTENTA_H7 from EthernetWebServer_SSL
59+
#endif
5760
#endif
5861
/////////////////////////////////////////////////////////////////////////
5962

6063
#if USE_UIP_ETHERNET
61-
#warning Using UIPEthernet library from EthernetWebServer
64+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
65+
#warning Using UIPEthernet library from EthernetWebServer
66+
#endif
6267
#elif USE_CUSTOM_ETHERNET
63-
#warning Using Custom Ethernet library from EthernetWebServer. You must include a library or error.
68+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
69+
#warning Using Custom Ethernet library from EthernetWebServer. You must include a library or error
70+
#endif
6471
#elif !( ETHERNET_USE_PORTENTA_H7 || USE_ETHERNET_ESP8266 || USE_ETHERNET_ENC || \
6572
USE_NATIVE_ETHERNET || USE_QN_ETHERNET)
6673
#include <Ethernet_Generic.h>
67-
#warning Using Ethernet_Generic library from EthernetWebServer
74+
75+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
76+
#warning Using Ethernet_Generic library from EthernetWebServer
77+
#endif
6878
#endif
6979

7080
/////////////////////////////////////////////////////////////////////////

src/EthernetWebServer_SSL.hpp

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
#pragma once
@@ -49,7 +50,9 @@
4950
#endif
5051
#define USE_NEW_WEBSERVER_VERSION false
5152

52-
#warning Use mbed-portenta architecture for PORTENTA_H7 from EthernetWebServer_SSL
53+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
54+
#warning Use mbed-portenta architecture for PORTENTA_H7 from EthernetWebServer_SSL
55+
#endif
5356
#endif
5457

5558
/////////////////////////////////////////////////////////////////////////
@@ -63,7 +66,10 @@
6366
#undef ETHERNET_USE_SAMD
6467
#endif
6568
#define ETHERNET_USE_SAMD true
66-
#warning Using SAMD architecture from EthernetWebServer_SSL
69+
70+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
71+
#warning Using SAMD architecture from EthernetWebServer_SSL
72+
#endif
6773
#endif
6874

6975
/////////////////////////////////////////////////////////////////////////
@@ -75,7 +81,10 @@
7581
#undef ETHERNET_USE_NRF528XX
7682
#endif
7783
#define ETHERNET_USE_NRF528XX true
78-
#warning Using nFR52 architecture from EthernetWebServer_SSL
84+
85+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
86+
#warning Using nFR52 architecture from EthernetWebServer_SSL
87+
#endif
7988
#endif
8089

8190
/////////////////////////////////////////////////////////////////////////
@@ -85,7 +94,10 @@
8594
#undef ETHERNET_USE_SAM_DUE
8695
#endif
8796
#define ETHERNET_USE_SAM_DUE true
88-
#warning Using SAM_DUE architecture from EthernetWebServer_SSL
97+
98+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
99+
#warning Using SAM_DUE architecture from EthernetWebServer_SSL
100+
#endif
89101
#endif
90102

91103
/////////////////////////////////////////////////////////////////////////
@@ -116,12 +128,18 @@
116128
// Permit redefinition of SENDCONTENT_P_BUFFER_SZ in sketch, default is 4K, minimum is 256 bytes
117129
#ifndef SENDCONTENT_P_BUFFER_SZ
118130
#define SENDCONTENT_P_BUFFER_SZ 4096
119-
#warning SENDCONTENT_P_BUFFER_SZ using default 4 Kbytes
131+
132+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
133+
#warning SENDCONTENT_P_BUFFER_SZ using default 4 Kbytes
134+
#endif
120135
#else
121136
#if (SENDCONTENT_P_BUFFER_SZ < 256)
122137
#undef SENDCONTENT_P_BUFFER_SZ
123138
#define SENDCONTENT_P_BUFFER_SZ 256
124-
#warning SENDCONTENT_P_BUFFER_SZ reset to min 256 bytes
139+
140+
#if (_ETHERNET_WEBSERVER_LOGLEVEL_ > 2)
141+
#warning SENDCONTENT_P_BUFFER_SZ reset to min 256 bytes
142+
#endif
125143
#endif
126144
#endif
127145

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_HttpClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
11-
Version: 1.8.0
11+
Version: 1.8.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.7.7 K Hoang 14/03/2022 Change licence from `MIT` to `GPLv3`
2626
1.7.8 K Hoang 29/03/2022 Sync with `SSLClient` v1.6.11
2727
1.8.0 K Hoang 05/04/2022 Use Ethernet_Generic library as default. Support SPI2 for ESP32
28+
1.8.1 K Hoang 09/04/2022 Add support to SPI1 for RP2040 using arduino-pico core
2829
*****************************************************************************************************************************/
2930

3031
// (c) Copyright Arduino. 2016

0 commit comments

Comments
 (0)