Skip to content

Commit 4302175

Browse files
committed
Merge branch 'feature/modbus_add_esp32p4_target_support' into 'master'
modbus add esp32p4 target support See merge request idf/esp-modbus!56
2 parents 94e9664 + 469eb71 commit 4302175

File tree

10 files changed

+25
-14
lines changed

10 files changed

+25
-14
lines changed

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ build_idf_master:
113113
extends: .build_pytest_template
114114
image: espressif/idf:latest
115115
variables:
116-
TEST_TARGETS: "esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c6 esp32h2"
116+
TEST_TARGETS: "esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c6 esp32h2 esp32p4"
117117

118118
build_idf_v5.0:
119119
extends: .build_pytest_template

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Issue reports and feature requests can be submitted using Github Issues: https:/
5252

5353
Contributions in the form of pull requests should follow ESP-IDF project's [contribution guidelines](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/contribute/index.html). We kindly ask developers to start a discussion on an issue before proposing large changes to the project.
5454

55+
See the beta version of stack v2.0.0_beta introduced [here](https://github.com/espressif/esp-modbus/discussions/45)
56+
5557
## Licence
5658

5759
ESP-Modbus project is based on [FreeMODBUS library](https://github.com/cwalter-at/freemodbus), Copyright (c) 2006 Christian Walter and licensed under the BSD 3-clause license.

docs/en/applications_and_references.rst

+1
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ API Reference
7070
.. include-build-file:: inc/esp_modbus_master.inc
7171
.. include-build-file:: inc/esp_modbus_slave.inc
7272

73+

idf_component.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.0.12"
1+
version: "1.0.13"
22
description: ESP-MODBUS is the official Modbus library for Espressif SoCs.
33
url: https://github.com/espressif/esp-modbus
44
dependencies:

test/serial/mb_serial_master/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
33

44
# Modbus Master Example
55

test/serial/mb_serial_master/main/Kconfig.projbuild

+6-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ menu "Modbus Example Configuration"
3030
int "UART RXD pin number"
3131
range 0 34 if IDF_TARGET_ESP32
3232
range 0 23 if IDF_TARGET_ESP32C6
33-
default 22 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6
33+
range 0 56 if IDF_TARGET_ESP32P4
34+
default 22 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32P4
3435
range 0 46 if IDF_TARGET_ESP32S2
3536
range 0 47 if IDF_TARGET_ESP32S3
3637
range 0 19 if IDF_TARGET_ESP32C3
@@ -46,7 +47,8 @@ menu "Modbus Example Configuration"
4647
int "UART TXD pin number"
4748
range 0 34 if IDF_TARGET_ESP32
4849
range 0 23 if IDF_TARGET_ESP32C6
49-
default 23 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6
50+
range 0 56 if IDF_TARGET_ESP32P4
51+
default 23 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32P4
5052
range 0 46 if IDF_TARGET_ESP32S2
5153
range 0 47 if IDF_TARGET_ESP32S3
5254
range 0 19 if IDF_TARGET_ESP32C3
@@ -62,6 +64,8 @@ menu "Modbus Example Configuration"
6264
int "UART RTS pin number"
6365
range 0 34 if IDF_TARGET_ESP32
6466
range 0 23 if IDF_TARGET_ESP32C6
67+
range 0 56 if IDF_TARGET_ESP32P4
68+
default 20 if IDF_TARGET_ESP32P4
6569
default 18 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6
6670
range 0 46 if IDF_TARGET_ESP32S2
6771
range 0 47 if IDF_TARGET_ESP32S3

test/serial/mb_serial_slave/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
33

44
# Modbus Slave Example
55

test/serial/mb_serial_slave/main/Kconfig.projbuild

+6-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ menu "Modbus Example Configuration"
3030
int "UART RXD pin number"
3131
range 0 34 if IDF_TARGET_ESP32
3232
range 0 23 if IDF_TARGET_ESP32C6
33-
default 22 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6
33+
range 0 56 if IDF_TARGET_ESP32P4
34+
default 22 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32P4
3435
range 0 46 if IDF_TARGET_ESP32S2
3536
range 0 47 if IDF_TARGET_ESP32S3
3637
range 0 19 if IDF_TARGET_ESP32C3
@@ -46,7 +47,8 @@ menu "Modbus Example Configuration"
4647
int "UART TXD pin number"
4748
range 0 34 if IDF_TARGET_ESP32
4849
range 0 23 if IDF_TARGET_ESP32C6
49-
default 23 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6
50+
range 0 56 if IDF_TARGET_ESP32P4
51+
default 23 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32P4
5052
range 0 46 if IDF_TARGET_ESP32S2
5153
range 0 47 if IDF_TARGET_ESP32S3
5254
range 0 19 if IDF_TARGET_ESP32C3
@@ -62,6 +64,8 @@ menu "Modbus Example Configuration"
6264
int "UART RTS pin number"
6365
range 0 34 if IDF_TARGET_ESP32
6466
range 0 23 if IDF_TARGET_ESP32C6
67+
range 0 56 if IDF_TARGET_ESP32P4
68+
default 20 if IDF_TARGET_ESP32P4
6569
default 18 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32C6
6670
range 0 46 if IDF_TARGET_ESP32S2
6771
range 0 47 if IDF_TARGET_ESP32S3

test/tcp/mb_tcp_master/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
33

44
# Modbus TCP Master Example
55

test/tcp/mb_tcp_slave/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
33

44
# Modbus Slave Example
55

0 commit comments

Comments
 (0)