Commit Graph

91 Commits

Author SHA1 Message Date
c1b8b88308 C++23 enable in CMakeLists.txt 2023-04-27 14:28:46 +02:00
a9bec86fdc Preparations for new IDF 2022-10-06 00:19:20 +02:00
77e42b309a Extracted custom patches on idf modbus implementation to run taskless 2022-04-26 13:08:05 +02:00
436bc70b3d Merge branch 'bugfix/esp_timer_deps' into 'master'
cmake: add dependency on esp_timer component

See merge request idf/esp-modbus!8
2022-04-20 16:15:04 +08:00
cc3a304fb7 version: release 1.0.1 v1.0.1 2022-04-20 07:23:50 +02:00
95dd8f1001 cmake: add dependency on esp_timer component
Public header file of esp-modbus (freemodbus/port/port.h) includes
esp_timer.h, which is provided by esp_timer component. Currently
this works without declaring a dependency on esp_timer because
of a transitive dependency on esp_timer via freertos component.
This will be changed in IDF v5.0, where freertos will no longer
have a public dependency on esp_timer. This commit makes esp-modbus
compatible with that future change.
2022-04-19 18:22:36 +02:00
028bfd36c0 Merge branch 'feature/fix_docs_versions_not_included' into 'master'
esp-modbus: fix docs versions is not included because of CORB

See merge request idf/esp-modbus!7
2022-04-07 20:50:58 +08:00
c45653d92d esp-modbus: fix docs versions is not included because of CORB 2022-04-07 20:50:58 +08:00
c81e3643e9 Merge branch 'feature/add_component_license_readme_version_selector' into 'master'
esp-modbus: add readme, license, documentation version selector

See merge request idf/esp-modbus!6
2022-04-06 15:41:21 +08:00
28edd9f007 esp-modbus: add_component_license_readme_version_selector 2022-04-06 09:21:41 +02:00
c59aa9f3cb Merge branch 'ci_remove_sync_job' into 'master'
ci: remove github sync job

See merge request idf/esp-modbus!5
2022-04-05 18:12:05 +08:00
74c129def9 Merge branch 'feature/add_github_actions' into 'master'
Add Github actions for JIRA

See merge request idf/esp-modbus!4
2022-04-05 18:02:09 +08:00
BOT
d5e932844e Add Github actions for JIRA 2022-04-05 18:02:09 +08:00
cbb7d2193a ci: remove github sync job
Github sync is done using repository mirroring rules instead.
2022-04-05 11:58:06 +02:00
304a0a446a esp-modbus: initial component update 2022-04-05 15:33:17 +08:00
3a377dfcac Merge branch 'feature/component_update' into 'master'
esp-modbus: initial component update

See merge request idf/esp-modbus!1
2022-04-05 15:33:17 +08:00
d1a0493a79 CI: rename some tests to avoid duplicated test names
* Original commit: espressif/esp-idf@4dc74c9c42
2022-03-21 13:18:30 +01:00
9716064cbb modbus: fix tcp slave destroy issues
* Original commit: espressif/esp-idf@224901fed3
2022-03-21 13:18:30 +01:00
ea81bd7fef freertos: Remove legacy data types
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.


* Original commit: espressif/esp-idf@57fd78f5ba
2022-03-21 13:18:30 +01:00
a0e61427d1 freemodbus: allow address gaps in master data dictionary (support of UID field in MBAP)
* Original commit: espressif/esp-idf@e9cdb3e0d3
2022-03-21 13:18:30 +01:00
355ff75304 unit_tests: replace legacy timer group with gptimer
* Original commit: espressif/esp-idf@705788a13f
2022-03-21 13:18:29 +01:00
d34246462a soc: don't expose unstable soc header files in public api
* Original commit: espressif/esp-idf@869bed1bb5
2022-03-21 13:18:29 +01:00
a54f2c11d9 freemodbus: fix port contains lgpl licensed files
Initial version of freemodbus master port files have been added to ESP-IDF based on https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.
The overall repository license, at the time of adding these files, has been BSD 3-clause. However at that time, several port files carried LGPL license headers. As the author of these files confirmed in https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32/issues/61#issuecomment-977828450, this wasn't intentional. ESP-IDF version of modbus master port has been rewritten to target FreeRTOS instead of RT-Thread, but the license headers remained from the original version. This commit corrects this, replacing the license of these files with BSD 3-clause.


* Original commit: espressif/esp-idf@b8c1d26f56
2022-03-21 13:18:29 +01:00
13fa7753de Build & config: Remove leftover files from the unsupported "make" build system
* Original commit: espressif/esp-idf@766aa57084
2022-03-21 13:18:29 +01:00
6d2cb13171 modbus: update to support other targets
* Original commit: espressif/esp-idf@0586be45d2
2022-03-21 13:18:29 +01:00
aebff14d74 freemodbus: fix tcp master long frame buffer issue
* Original commit: espressif/esp-idf@0d393558d3
2022-03-21 13:18:29 +01:00
509c47fc76 freemodbus: fix timer port to use esp_timer instead of group timer
* Original commit: espressif/esp-idf@ee104f8de2
2022-03-21 13:18:24 +01:00
0ddd723239 Bugfix/modbus fix copyright headers
* Original commit: espressif/esp-idf@bdf0298009
2022-03-21 13:15:54 +01:00
23e78eb821 gptimer: clean up hal and ll for driver-ng
* Original commit: espressif/esp-idf@e2275b1f63
2022-03-21 13:15:54 +01:00
4fc2d83143 freemodbus: fix TCP stack/examples reinitialization sequence
* Original commit: espressif/esp-idf@c965b48e77
2022-03-21 13:15:54 +01:00
71ee6f844a freemodbus: update the modbus documentation doc-1641
* Original commit: espressif/esp-idf@b9b2cab8f9
2022-03-21 13:15:54 +01:00
b0b5ab017c freemodbus: fix issues when modbus master and slave work simultaneously
fix slave destroy bug when master and slave init simultaneously
add additional timer group options for master
fix master and slave use the same timer group index (https://github.com/espressif/esp-idf/issues/4699)


* Original commit: espressif/esp-idf@9693ef4918
2022-03-21 13:15:54 +01:00
2bb90f1bbd add compile time checks for MB_MASTER_TCP_ENABLED
Signed-off-by: AshUK <github.AshUK@outlook.com>


* Original commit: espressif/esp-idf@1aa7f27468
2022-03-21 13:15:54 +01:00
9facdd9148 freemodbus: fix invalid error handling for duplicate param_key
* Original commit: espressif/esp-idf@60ac95a6b2
2022-03-21 13:15:54 +01:00
ee9f8620d7 freemodbus: potential loss of significant bits and auto merge issues
* Original commit: espressif/esp-idf@9457555173
2022-03-21 13:15:54 +01:00
ddd3e3394b freemodbus: add affinity option for modbus stack tasks
Closes https://github.com/espressif/esp-idf/issues/6700


* Original commit: espressif/esp-idf@dfcc434910
2022-03-21 13:15:54 +01:00
c0163bb01e freemodbus: fix uart_wait_tx_done() reenable tx_done interrupt
fixes the issue with uart_wait_tx_done() when the task is suspended and transmission is done right before reenable tx_done interrupt


* Original commit: espressif/esp-idf@c801b3a182
2022-03-21 13:15:54 +01:00
5a27d03531 freemodbus: increase max priority of modbus tasks
allows to avoid issues with modbus processing when higher priority tasks are used in user application


* Original commit: espressif/esp-idf@59935e44c0
2022-03-21 13:15:54 +01:00
920cef48ae freemodbuss: fix event processing after merge
* Original commit: espressif/esp-idf@868e123336
2022-03-21 13:15:54 +01:00
bf29cd008f freemodbus: fix mb zero based reg address in the iterator
Fixes https://github.com/espressif/esp-idf/issues/6571


* Original commit: espressif/esp-idf@0d3f19beea
2022-03-21 13:15:54 +01:00
fd44763138 components: Use CONFIG_LWIP_IPV6 to strip IPv6 function in components
* Original commit: espressif/esp-idf@da58235a0e
2022-03-21 13:15:54 +01:00
bc2657c71c freemodbus: fix mb controller parity propagation issues
Closes https://github.com/espressif/esp-idf/issues/6377


* Original commit: espressif/esp-idf@b554d4d34d
2022-03-21 13:15:54 +01:00
d11e5c8683 modbus: Exit server task gracefully to correctly cleanup lwip internals
Current lwip implementation does not support deleting a task which is
actively waiting on `select()` or `poll()` API.
Therefore we have to make sure that `select()` exits to deallocate its internal
callback before deleting the task. This is achieved by a shutdown
semaphore which informs the client once the `select()` exitted.

fix slave


* Original commit: espressif/esp-idf@898cac0061
2022-03-21 13:15:54 +01:00
a2144bab49 CI: enable example builds for C3
Enables building C3 examples in CI.

Fixes related warnings/errors and disables examples that cannot run.


* Original commit: espressif/esp-idf@04df1f3a42
2022-03-21 13:15:54 +01:00
eb45711d81 freemodbus: add support for list of area descriptors for each register area
add multi register area descriptors into concrete port (initial)
add create/destroy of area descriptors into concrete port
add  the list of descriptors in common slave interface structure and init/destroy in concrete slave port
move r/w callback functions into common slave
final update of common slave interface wrappers add override API option in concrete port
update slave examples to check new  feature


* Original commit: espressif/esp-idf@96b77a28b1
2022-03-21 13:15:54 +01:00
84c8ac80ea style: format python files with isort and double-quote-string-fixer
* Original commit: espressif/esp-idf@0146f258d7
2022-03-21 13:15:54 +01:00
4e41405f2b esp32c3: Disable components that are not yet supported
* Original commit: espressif/esp-idf@0301c66bf0
2022-03-21 13:15:54 +01:00
e0102243f5 Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)


* Original commit: espressif/esp-idf@66fb5a29bb
2022-03-21 13:15:54 +01:00
fb445432c4 Bugfix/fix RS485 ut fail
* Original commit: espressif/esp-idf@8737584789
2022-03-21 13:15:54 +01:00
c123f2895b Revert "ci: temporarily disable RS485 related tests"
This reverts commit 315aeecb73855526df9bb73061bba78630610b25

* Original commit: espressif/esp-idf@4941cf58d0
2022-03-21 13:15:54 +01:00