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

Commit a849f70

Browse files
authored
v1.3.0 add LAN8720 support
### Releases v1.3.0 1. Add support to **LAN8720** Ethernet for many **STM32F4** (F407xx, NUCLEO_F429ZI) and **STM32F7** (DISCO_F746NG, NUCLEO_F746ZG, NUCLEO_F756ZG) boards. 2. Add LAN8720 examples 3. Add Packages' Patches for STM32 to use LAN8720 with STM32Ethernet and LwIP libraries
1 parent a14d5eb commit a849f70

22 files changed

+52
-24
lines changed

src/EthernetHttpClient_SSL_STM32.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
10-
Version: 1.2.1
10+
11+
Version: 1.3.0
1112
1213
Version Modified By Date Comments
1314
------- ----------- ---------- -----------
@@ -17,6 +18,7 @@
1718
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
1819
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
1920
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
21+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2022
*****************************************************************************************************************************/
2123

2224
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_SSL_STM32-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#pragma once

src/EthernetWebServer_SSL_STM32.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,11 +19,12 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#pragma once
2526

26-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.2.1"
27+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.3.0"
2728

2829
#if !( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
2930
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \
@@ -44,7 +45,12 @@
4445
#if USE_BUILTIN_ETHERNET
4546
#include <LwIP.h>
4647
#include <STM32Ethernet.h>
47-
#warning Using built-in LAN8742A Ethernet with STM32Ethernet library from EthernetWebServer_STM32
48+
49+
#if USING_LAN8720
50+
#warning Using built-in LAN8720 Ethernet with STM32Ethernet library from EthernetWebServer_STM32
51+
#else
52+
#warning Using built-in LAN8742A Ethernet with STM32Ethernet library from EthernetWebServer_STM32
53+
#endif
4854
#elif USE_UIP_ETHERNET
4955
#include <UIPEthernet.h>
5056
#include <utility/logging.h>

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
// (c) Copyright Arduino. 2016

src/Parsing_SSL_STM32-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#pragma once

src/detail/Debug_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#ifndef EthernetWebServer_STM32_Debug_H

src/detail/RequestHandler_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#pragma once

src/detail/RequestHandlersImpl_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#pragma once

src/detail/mimetable.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.1
12+
Version: 1.3.0
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2121
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
22+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2223
*****************************************************************************************************************************/
2324

2425
#ifndef __MIMETABLE_H__

src/inner.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1111
Licensed under MIT license
1212
13-
Version: 1.2.1
13+
Version: 1.3.0
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -20,6 +20,7 @@
2020
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2121
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2222
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
23+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2324
*****************************************************************************************************************************/
2425

2526
#include "SSLClient/inner.h"

src/libb64/base64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1111
Licensed under MIT license
1212
13-
Version: 1.2.1
13+
Version: 1.3.0
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -20,6 +20,7 @@
2020
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2121
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2222
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
23+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2324
*****************************************************************************************************************************/
2425

2526
#include "base64.h"

src/libb64/base64.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1111
Licensed under MIT license
1212
13-
Version: 1.2.1
13+
Version: 1.3.0
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -20,6 +20,7 @@
2020
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2121
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2222
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
23+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2324
*****************************************************************************************************************************/
2425

2526
#pragma once

src/libb64/cdecode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1414
Licensed under MIT license
1515
16-
Version: 1.2.1
16+
Version: 1.3.0
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2424
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2525
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
26+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2627
*****************************************************************************************************************************/
2728

2829
#include "cdecode.h"

src/libb64/cdecode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1414
Licensed under MIT license
1515
16-
Version: 1.2.1
16+
Version: 1.3.0
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2424
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2525
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
26+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2627
*****************************************************************************************************************************/
2728

2829
#pragma once

src/libb64/cencode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1414
Licensed under MIT license
1515
16-
Version: 1.2.1
16+
Version: 1.3.0
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2424
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2525
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
26+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2627
*****************************************************************************************************************************/
2728

2829
#include "cencode.h"

src/libb64/cencode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1414
Licensed under MIT license
1515
16-
Version: 1.2.1
16+
Version: 1.3.0
1717
1818
Version Modified By Date Comments
1919
------- ----------- ---------- -----------
@@ -23,6 +23,7 @@
2323
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2424
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2525
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
26+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2627
*****************************************************************************************************************************/
2728

2829
#pragma once

src/time_macros.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1111
Licensed under MIT license
1212
13-
Version: 1.2.1
13+
Version: 1.3.0
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -20,6 +20,7 @@
2020
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2121
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
2222
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
23+
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2324
*****************************************************************************************************************************/
2425

2526
#include "SSLClient/time_macros.h"

0 commit comments

Comments
 (0)