Commit Graph
34 Commits
Author SHA1 Message Date
Johannes Kauffmann 2f08b49aac tests: fix linked list leak
Don't overwrite the original pointer returned by ec_find_adapters(),
otherwise the linked list is leaked. Instead, save original pointer to
the head of the list use and `adapters` as a temporary variable. Pass
the original pointer to ec_free_adapters().

For win32, ec_free_adapters() was missing entirely.
2025-04-08 14:33:08 +02:00
Windsgo d478bce787 Fix add_timespec in other codes besides red_test (#794) 2024-03-21 07:51:29 +01:00
rtmagj c5db2741ee Update simple_test.c 2023-10-30 10:53:28 +01:00
rtmagj 42aadc190b Update eoe_test.c 2023-10-30 10:53:28 +01:00
Magnus Johansson f5a32959b2 Remove variable for unused parameter. 2023-10-30 10:53:28 +01:00
Torsten Robitzki a901500618 Local variable Size is only written and causes compiler warning (#670) 2022-12-02 19:03:35 +01:00
Patrick Laza 6a5babfec9 Added config_map_aligned to use byte aligned outputs and inputs (#645) 2022-10-19 16:06:55 +02:00
ArthurKetels 6f04be13c9 Merge pull request #553 from OpenEtherCATsociety/mheden/slaveinfo
slaveinfo: improve SDO printout
2021-09-28 21:19:56 +02:00
Mikael Heden 447fd0ae2a slaveinfo: improve SDO printout 2021-09-13 09:06:51 +02:00
Mikael Heden 38f61fdad0 Examples: show avaialable adapters if not specified 2021-09-08 09:41:30 +02:00
Alex Kalmuk 8aa894bc34 Check for reaching pre_op state in firm_update 2021-04-06 20:46:29 +03:00
Alex Kalmuk 52cb5fd5da Fix timespec overflow in red_test 2021-04-02 23:13:28 +03:00
Alex Kalmuk 61ef8e3198 Fix red_test build with gcc 9 2021-04-02 23:11:36 +03:00
ArthurKetels 4b4cdc2c45 Fix add_timespec 2020-11-09 22:39:56 +01:00
Pedram Nimreezi 953eb07f8a Update printf statement
Just happened to spot this
2020-05-09 13:49:17 +02:00
Andreas Karlsson 151045ed56 Adjust Linux and Win32 application SAFEOP->OP timeouts, fixes #141 2019-05-24 13:49:10 +02:00
jopado1 537145f6bf Fixes for big-endian hosts 2019-05-10 10:17:46 +02:00
nakarlsson 86a2584e47 Impelmented EoE filter function in mailbox receive (#244) 2019-01-31 14:57:16 +01:00
Qbotics Labs b4f3a306e4 Fix in aliastool.c (#234) 2018-11-27 07:27:18 +01:00
Jesper Smith d8c5620768 Increased size of EEPROM buffer in eepromtool.c
This PR increases the size eepromtool can read/write to 4 megabit, which is the maximum slave devices seem to support according to the datasheets.

Due to space constraints on our device we store some application specific data on our slave that exceeds 32kbyte, hence the need for the ability to read/write larger images to EEPROM.
2018-06-21 09:15:22 +02:00
Hans-Erik Floryd 3daefaea61 Normalize line endings (#126)
* add .gitattributes

* normalize line-endings
2017-08-16 20:07:39 +02:00
Hans-Erik Floryd da7d55e893 Enable and fix warnings (#123)
* cleanup CMakeLists.txt

* build with more warnings, warnings as errors

* fix expression has no effect warning

* fix unused parameter warnings

* fix loss of precision warning

* remove obsolete files
2017-08-16 13:48:51 +02:00
Zihan Chen ed79602a64 Fixed FMMU2func typo (#107) 2017-05-25 10:11:15 +02:00
Hans-Erik Floryd fb975cbc70 allow setting CMAKE_INSTALL_PREFIX externally (#86)
looks fine
2017-03-31 17:47:20 +02:00
Albert Hofkamp 6c37e949e0 Improve tutorial and documentation 2017-02-09 12:19:58 +01:00
strongly-typed 755e700a2f Use ECT_MBXPROT_COE instead of magic number 0x04. 2016-02-16 12:46:31 +01:00
Shahbaz Youssefi 593a81a177 Build simple_test, but don't install
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
2015-12-18 13:15:24 -05:00
Shahbaz Youssefi 529ffbe0cd Add a single header for all ethercat headers
This way, applications don't need to know the details of every header
file that exists in the API. With a simple:

    #include <ethercat.h>

they would get everything.  This is specially important because the
order of including the header files is important!

Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
2015-12-18 09:56:33 -05:00
Shahbaz Yousefi d54054f38e Correct usage printf with 64 bit numbers
Signed-off-by: Shahbaz Youssefi <shabbyx@gmail.com>
2015-12-10 11:38:23 -05:00
Albert Hofkamp 5239968d0d Remove trailing whitespace. 2015-11-04 13:02:33 +01:00
Mikael Heden d6dd3411d7 Minor cleanup in the test applications 2015-07-09 17:58:54 +02:00
Mikael Heden 77da52b89d Change to cmake build system 2015-07-09 17:57:59 +02:00
nakarlsson c9bbb90ed1 fixed linux warnings, removed unused/unsed and set variales. Moved fshort-wchar to machine .mk files 2015-03-17 22:21:20 +01:00
Mikael Heden 7472dae1a2 Added SOEM 1.3 (hg: a02cedcbdca5) 2014-11-25 16:10:29 +01:00