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

Commit

Permalink
v1.3.1 to fix typo in library.json
Browse files Browse the repository at this point in the history
### Releases v1.3.1

1. Fix typo in `library.json`
2. Update `Packages' Patches`
  • Loading branch information
khoih-prog committed May 23, 2022
1 parent 668509b commit 8afe6b8
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 37 deletions.
12 changes: 7 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p

Please ensure to specify the following:

* Arduino IDE version (e.g. 1.8.16) or Platform.io version
* `ArduinoCore-mbed` Core Version (e.g. `ArduinoCore-mbed` mbed_portenta core v2.6.1)
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
* `ArduinoCore-mbed` Core Version (e.g. `ArduinoCore-mbed` mbed_portenta core v3.1.1)
* `Portenta_H7` Board type (e.g. Portenta_H7 Rev2 ABX00042, etc.)
* Contextual information (e.g. what you were trying to achieve)
* Simplest possible steps to reproduce
Expand All @@ -27,11 +27,11 @@ Please ensure to specify the following:
### Example

```
Arduino IDE version: 1.8.16
`ArduinoCore-mbed` mbed_portenta core v2.6.1
Arduino IDE version: 1.8.19
`ArduinoCore-mbed` mbed_portenta core v3.1.1
Portenta_H7 Rev2 ABX00042
OS: Ubuntu 20.04 LTS
Linux xy-Inspiron-3593 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Linux xy-Inspiron-3593 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Context:
I encountered a crash while using Ethernet Async_AdvancedWebServer.
Expand All @@ -52,3 +52,5 @@ There are usually some outstanding feature requests in the [existing issues list
### Sending Pull Requests

Pull Requests with changes and fixes are also welcome!


35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/Portenta_H7_AsyncTCP.svg)](http://github.com/khoih-prog/Portenta_H7_AsyncTCP/issues)


<a href="https://www.buymeacoffee.com/khoihprog6" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 50px !important;width: 181px !important;" ></a>
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Donate to my libraries using BuyMeACoffee" style="height: 50px !important;width: 181px !important;" ></a>
<a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00" style="height: 20px !important;width: 200px !important;" ></a>

---
---
Expand Down Expand Up @@ -90,7 +91,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
## Prerequisites

1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
2. [`ArduinoCore-mbed mbed_portenta core 2.7.2+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino **Portenta_H7** boards, such as **Portenta_H7 Rev2 ABX00042, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
2. [`ArduinoCore-mbed mbed_portenta core 3.1.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino **Portenta_H7** boards, such as **Portenta_H7 Rev2 ABX00042, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)

---
---
Expand All @@ -115,7 +116,7 @@ Another way to install is to:

1. Install [VS Code](https://code.visualstudio.com/)
2. Install [PlatformIO](https://platformio.org/platformio-ide)
3. Install [**Portenta_H7_AsyncTCP** library](https://platformio.org/lib/show/12919/Portenta_H7_AsyncTCP) by using [Library Manager](https://platformio.org/lib/show/12919/Portenta_H7_AsyncTCP/installation). Search for **Portenta_H7_AsyncTCP** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
3. Install [**Portenta_H7_AsyncTCP** library](https://registry.platformio.org/libraries/khoih-prog/Portenta_H7_AsyncTCP) by using [Library Manager](https://registry.platformio.org/libraries/khoih-prog/Portenta_H7_AsyncTCP/installation). Search for **Portenta_H7_AsyncTCP** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22)
4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html)

---
Expand All @@ -125,12 +126,12 @@ Another way to install is to:

#### 1. For Portenta_H7 boards using Arduino IDE in Linux

**To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh).
**To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh).

Then run the following command using `sudo`

```
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/2.6.1
$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/3.1.1
$ chmod 755 portenta_post_install.sh
$ sudo ./portenta_post_install.sh
```
Expand All @@ -143,9 +144,9 @@ This will create the file `/etc/udev/rules.d/49-portenta_h7.rules` as follows:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666"
```

Supposing the ArduinoCore-mbed core version is 2.6.1. Now only one file must be copied into the directory:
Supposing the ArduinoCore-mbed core version is 3.1.1. Now only one file must be copied into the directory:

- `~/.arduino15/packages/arduino/hardware/mbed_portenta/2.6.1/portenta_post_install.sh`
- `~/.arduino15/packages/arduino/hardware/mbed_portenta/3.1.1/portenta_post_install.sh`

Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz

Expand All @@ -157,7 +158,7 @@ This file must be copied into the directory:
#### 2. To fix compile error relating to dns_gethostbyname and LwIP stack


#### Notes: Only for cores v2.5.2-. This fix is not necessary for core v2.6.1+
#### Notes: Only for cores v2.5.2-. This fix is not necessary for core v3.1.1+

**To be able to compile, run on Portenta_H7 boards**, you have to copy the whole [mbed_portenta Packages_Patches](Packages_Patches/arduino/hardware/mbed_portenta/2.5.2) directory into Arduino mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2).

Expand Down Expand Up @@ -210,8 +211,8 @@ Following is the debug terminal and screen shot when running example [Async_Adva

```
Start Async_AdvancedWebServer on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
Portenta_H7_AsyncTCP v1.3.0
Portenta_H7_AsyncWebServer v1.2.0
Portenta_H7_AsyncTCP v1.3.1
Portenta_H7_AsyncWebServer v1.2.1
Using mac index = 4
Connected! IP address: 192.168.2.87
HTTP EthernetWebServer is @ IP : 192.168.2.87
Expand All @@ -233,8 +234,8 @@ Following is the debug terminal and screen shot when running example [Async_Adva

```
Start Async_AdvancedWebServer on PORTENTA_H7_M7 with Portenta_H7 WiFi
Portenta_H7_AsyncTCP v1.3.0
Portenta_H7_AsyncWebServer v1.2.0
Portenta_H7_AsyncTCP v1.3.1
Portenta_H7_AsyncWebServer v1.2.1
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.94
Expand All @@ -258,8 +259,8 @@ Following is the debug terminal when running example [AsyncHTTPRequest](https://

```
Start AsyncHTTPRequest on PORTENTA_H7_M7
Portenta_H7_AsyncTCP v1.3.0
Portenta_H7_AsyncHTTPRequest v1.0.0
Portenta_H7_AsyncTCP v1.3.1
Portenta_H7_AsyncHTTPRequest v1.2.0
Connecting to SSID: HueNet1
SSID: HueNet1
Local IP Address: 192.168.2.94
Expand Down Expand Up @@ -293,8 +294,8 @@ Following is the debug terminal when running example [AsyncHTTPRequest](https://

```
Start AsyncHTTPRequest on PORTENTA_H7_M7
Portenta_H7_AsyncTCP v1.3.0
Portenta_H7_AsyncHTTPRequest v1.0.0
Portenta_H7_AsyncTCP v1.3.1
Portenta_H7_AsyncHTTPRequest v1.2.0
Using mac index = 6
Connected! IP address: 192.168.2.87
Request sent
Expand Down Expand Up @@ -388,6 +389,8 @@ Submit issues to: [Portenta_H7_AsyncTCP issues](https://github.com/khoih-prog/Po

Many thanks for everyone for bug reporting, new feature suggesting, testing and contributing to the development of this library.

---

### Contributions and Thanks

1. Based on and modified from [Hristo Gochkov's ESPAsyncTCP](https://github.com/me-no-dev/ESPAsyncTCP). Many thanks to [Hristo Gochkov](https://github.com/me-no-dev) for great [ESPAsyncTCP Library](https://github.com/me-no-dev/ESPAsyncTCP)
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v1.3.1](#Releases-v131)
* [Releases v1.3.0](#Releases-v130)
* [Releases v1.2.0](#Releases-v120)
* [Releases v1.1.0](#Releases-v110)
Expand All @@ -21,6 +22,11 @@

## Changelog

### Releases v1.3.1

1. Fix typo in `library.json`
2. Update `Packages' Patches`

### Releases v1.3.0

1. Fix compile error issue in mbed_portenta v2.6.1+
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Portenta_H7_AsyncTCP",
"version": "1.3.0",
"version": "1.3.1",
"keywords": "http, communication, async, websocket, webserver, async-webserver, async-tcp, async-udp, async-websocket, async-http, ssl, tls, mbed, mbed-portenta, portenta-h7, portentah7, portenta-h7-m7, portenta-h7-m4, portentah7-m7, portentah7-m4, stm32h7",
"description": "Asynchronous TCP Library for STM32H7-based Portenta_H7 using mbed_portenta core. This library is the base for future and more advanced Async libraries, such as AsyncWebServer, AsyncHTTPRequest, AsyncHTTPSRequest",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Portenta_H7_AsyncTCP
version=1.3.0
version=1.3.1
author=Hristo Gochkov,Khoi Hoang
maintainer=Khoi Hoang <khoih.prog@gmail.com>
sentence=Asynchronous TCP Library for STM32H7-based Portenta_H7 using mbed_portenta core
Expand Down
2 changes: 2 additions & 0 deletions platformio/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ upload_speed = 921600

; Checks for the compatibility with frameworks and dev/platforms
lib_compat_mode = strict
lib_ldf_mode = chain+
;lib_ldf_mode = deep+

lib_deps =

Expand Down
3 changes: 2 additions & 1 deletion src/AsyncPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 06/10/2021 Initial coding for Portenta_H7 (STM32H7) with Vision-Shield Ethernet
1.1.0 K Hoang 08/10/2021 Add support to Portenta_H7 (STM32H7) using Murata WiFi
1.2.0 K Hoang 15/10/2021 Workaround for issue with dns_gethostbyname not-working issue in mbed_portenta v2.5.2
1.3.0 K Hoang 06/12/2021 Fix compile error issue in mbed_portenta v2.6.1+
1.3.1 K Hoang 23/05/2022 Fix typo in `library.json`
*****************************************************************************************************************************/
/*
Asynchronous TCP library for Espressif MCUs
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 06/10/2021 Initial coding for Portenta_H7 (STM32H7) with Vision-Shield Ethernet
1.1.0 K Hoang 08/10/2021 Add support to Portenta_H7 (STM32H7) using Murata WiFi
1.2.0 K Hoang 15/10/2021 Workaround for issue with dns_gethostbyname not-working issue in mbed_portenta v2.5.2
1.3.0 K Hoang 06/12/2021 Fix compile error issue in mbed_portenta v2.6.1+
1.3.1 K Hoang 23/05/2022 Fix typo in `library.json`
*****************************************************************************************************************************/
/*
Asynchronous TCP library for Espressif MCUs
Expand Down
3 changes: 2 additions & 1 deletion src/DebugPrintMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 06/10/2021 Initial coding for Portenta_H7 (STM32H7) with Vision-Shield Ethernet
1.1.0 K Hoang 08/10/2021 Add support to Portenta_H7 (STM32H7) using Murata WiFi
1.2.0 K Hoang 15/10/2021 Workaround for issue with dns_gethostbyname not-working issue in mbed_portenta v2.5.2
1.3.0 K Hoang 06/12/2021 Fix compile error issue in mbed_portenta v2.6.1+
1.3.1 K Hoang 23/05/2022 Fix typo in `library.json`
*****************************************************************************************************************************/

#ifndef _DEBUG_PRINT_MACROS_H
Expand Down
3 changes: 2 additions & 1 deletion src/Portenta_H7_AsyncTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 06/10/2021 Initial coding for Portenta_H7 (STM32H7) with Vision-Shield Ethernet
1.1.0 K Hoang 08/10/2021 Add support to Portenta_H7 (STM32H7) using Murata WiFi
1.2.0 K Hoang 15/10/2021 Workaround for issue with dns_gethostbyname not-working issue in mbed_portenta v2.5.2
1.3.0 K Hoang 06/12/2021 Fix compile error issue in mbed_portenta v2.6.1+
1.3.1 K Hoang 23/05/2022 Fix typo in `library.json`
*****************************************************************************************************************************/

/*
Expand Down
12 changes: 10 additions & 2 deletions src/Portenta_H7_AsyncTCP.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 06/10/2021 Initial coding for Portenta_H7 (STM32H7) with Vision-Shield Ethernet
1.1.0 K Hoang 08/10/2021 Add support to Portenta_H7 (STM32H7) using Murata WiFi
1.2.0 K Hoang 15/10/2021 Workaround for issue with dns_gethostbyname not-working issue in mbed_portenta v2.5.2
1.3.0 K Hoang 06/12/2021 Fix compile error issue in mbed_portenta v2.6.1+
1.3.1 K Hoang 23/05/2022 Fix typo in `library.json`
*****************************************************************************************************************************/
/*
Asynchronous TCP library for Espressif MCUs
Expand Down Expand Up @@ -81,7 +82,14 @@
#include <WiFiClient.h>
#endif

#define PORTENTA_H7_ASYNC_TCP_VERSION "Portenta_H7_AsyncTCP v1.3.0"
#define PORTENTA_H7_ASYNC_TCP_VERSION "Portenta_H7_AsyncTCP v1.3.1"

#define PORTENTA_H7_ASYNC_TCP_VERSION_MAJOR 1
#define PORTENTA_H7_ASYNC_TCP_VERSION_MINOR 3
#define PORTENTA_H7_ASYNC_TCP_VERSION_PATCH 1

#define PORTENTA_H7_ASYNC_TCP_VERSION_INT 1003001


#define DEBUG_ESP_ASYNC_TCP true

Expand Down
11 changes: 10 additions & 1 deletion src/Portenta_H7_AsyncTCP_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
Built by Khoi Hoang https://github.com/khoih-prog/Portenta_H7_ASYNC_TCP
Licensed under MIT license
Version: 1.3.0
Version: 1.3.1
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 06/10/2021 Initial coding for Portenta_H7 (STM32H7) with Vision-Shield Ethernet
1.1.0 K Hoang 08/10/2021 Add support to Portenta_H7 (STM32H7) using Murata WiFi
1.2.0 K Hoang 15/10/2021 Workaround for issue with dns_gethostbyname not-working issue in mbed_portenta v2.5.2
1.3.0 K Hoang 06/12/2021 Fix compile error issue in mbed_portenta v2.6.1+
1.3.1 K Hoang 23/05/2022 Fix typo in `library.json`
*****************************************************************************************************************************/

#pragma once
Expand Down Expand Up @@ -57,22 +58,30 @@
#define ATCP_LOGERROR2(x,y,z) if(_PORTENTA_H7_ATCP_LOGLEVEL_>0) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINTLN(z); }
#define ATCP_LOGERROR3(x,y,z,w) if(_PORTENTA_H7_ATCP_LOGLEVEL_>0) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINT(z); ATCP_PRINT_SP; ATCP_PRINTLN(w); }

/////////////////////////////////////////////////////////

#define ATCP_LOGWARN(x) if(_PORTENTA_H7_ATCP_LOGLEVEL_>1) { ATCP_PRINT_MARK; ATCP_PRINTLN(x); }
#define ATCP_LOGWARN0(x) if(_PORTENTA_H7_ATCP_LOGLEVEL_>1) { ATCP_PRINT(x); }
#define ATCP_LOGWARN1(x,y) if(_PORTENTA_H7_ATCP_LOGLEVEL_>1) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINTLN(y); }
#define ATCP_LOGWARN2(x,y,z) if(_PORTENTA_H7_ATCP_LOGLEVEL_>1) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINTLN(z); }
#define ATCP_LOGWARN3(x,y,z,w) if(_PORTENTA_H7_ATCP_LOGLEVEL_>1) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINT(z); ATCP_PRINT_SP; ATCP_PRINTLN(w); }

/////////////////////////////////////////////////////////

#define ATCP_LOGINFO(x) if(_PORTENTA_H7_ATCP_LOGLEVEL_>2) { ATCP_PRINT_MARK; ATCP_PRINTLN(x); }
#define ATCP_LOGINFO0(x) if(_PORTENTA_H7_ATCP_LOGLEVEL_>2) { ATCP_PRINT(x); }
#define ATCP_LOGINFO1(x,y) if(_PORTENTA_H7_ATCP_LOGLEVEL_>2) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINTLN(y); }
#define ATCP_LOGINFO2(x,y,z) if(_PORTENTA_H7_ATCP_LOGLEVEL_>2) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINTLN(z); }
#define ATCP_LOGINFO3(x,y,z,w) if(_PORTENTA_H7_ATCP_LOGLEVEL_>2) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINT(z); ATCP_PRINT_SP; ATCP_PRINTLN(w); }

/////////////////////////////////////////////////////////

#define ATCP_LOGDEBUG(x) if(_PORTENTA_H7_ATCP_LOGLEVEL_>3) { ATCP_PRINT_MARK; ATCP_PRINTLN(x); }
#define ATCP_LOGDEBUG0(x) if(_PORTENTA_H7_ATCP_LOGLEVEL_>3) { ATCP_PRINT(x); }
#define ATCP_LOGDEBUG1(x,y) if(_PORTENTA_H7_ATCP_LOGLEVEL_>3) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINTLN(y); }
#define ATCP_LOGDEBUG2(x,y,z) if(_PORTENTA_H7_ATCP_LOGLEVEL_>3) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINTLN(z); }
#define ATCP_LOGDEBUG3(x,y,z,w) if(_PORTENTA_H7_ATCP_LOGLEVEL_>3) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINT(z); ATCP_PRINT_SP; ATCP_PRINTLN(w); }

/////////////////////////////////////////////////////////

#endif //PORTENTA_H7_ASYNC_TCP_DEBUG_H
Loading

0 comments on commit 8afe6b8

Please sign in to comment.