nakarlsson
0b8f888f2c
Merge pull request #614 from notofug/avoid_warnings
...
avoid 'maybe used unitialized' warnings
2022-06-16 07:34:04 +02:00
Tore Fuglestad
e604e98446
avoid 'may be used unitialized' warnings
...
gcc : -Wmaybe-uninitialized or -Wuninitialized
2022-06-16 07:04:30 +02:00
nakarlsson
703a6e08d6
Merge pull request #601 from rhdlilj/master
...
Using context->maxslave instead EC_MAXSLAVE
2022-03-30 19:42:43 +02:00
lilj
c879aabd02
Update ethercatconfig.c
...
Using context->maxslave instead EC_MAXSLAVE
2022-03-16 17:25:06 +08:00
ArthurKetels
9b6ebd6e43
Merge pull request #533 from yschmid-levi/fix-win32-timeperiod
...
matching call to timeEndPeriod and timeBeginPeriod
2022-01-13 22:58:03 +01:00
ArthurKetels
def119bbd0
Merge pull request #564 from hefloryd/master
...
Bump cmake version
2021-10-26 20:46:34 +02:00
Hans-Erik Floryd
ceab31ceda
Bump cmake version
...
Bump CMake version to 3.9, which the oldest version supporting the
project DESCRIPTION option (see
https://cmake.org/cmake/help/latest/command/project.html#command:project ),
which was introduced by commit 59821cb
.
CMake policy CMP0048 is set to NEW by default since 3.0 and can be
removed.
Fixes #559 , fixes #512
2021-10-26 09:59:20 +02:00
ArthurKetels
5fa8824d33
Merge pull request #563 from hefloryd/master
...
Update build matrix
2021-10-26 08:57:15 +02:00
Hans-Erik Floryd
e6f04db1b4
Update build matrix
...
Ubuntu 16.04 is now deprecated. Remove it and add ubuntu-latest.
2021-10-25 11:53:51 +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
nakarlsson
354466a534
Merge pull request #552 from OpenEtherCATsociety/show-adapters
...
Examples: show avaialable adapters if not specified
2021-09-10 08:59:18 +02:00
Mikael Heden
38f61fdad0
Examples: show avaialable adapters if not specified
2021-09-08 09:41:30 +02:00
ArthurKetels
4b81d4099d
Merge pull request #548 from eglimi/fix_546
...
Fix some UB cases. Closes #546
2021-08-31 19:01:24 +02:00
Michael Egli
ff448e3485
Fix some UB cases. Closes #546
...
There are two cases of UB that are fixed in this commit.
1. In ethercatmain.c, there are two left shifts of 31:
(1 << 31)
Because 1 is a signed int by default, the result cannot be represented
in an int. The fix is to explicitly make the 1 unsigned.
2. In ethercatconfig.c, for slaves that have no inputs, the code would
apply an offset to a NULL pointer. The fix is to test that the slave
has inputs available before applying the offset.
Both cases were found by clang with the help of UBSan.
2021-08-31 13:02:10 +02:00
nakarlsson
be1a2df6b2
Merge pull request #539 from Wanga/master
...
Add group checking for slave input offset calculation
fixes #538
2021-08-10 07:17:09 +02:00
Wanga
9fef1fc23c
Add group checking for slave input offset calculation
...
Some slaves can be at different group and do not use overlap PDO map,
Let ec_config_overlap_map_group only change the input offset for current group.
2021-08-04 20:43:50 +08:00
ArthurKetels
04f7baec68
Merge pull request #537 from ArthurKetels/master
...
Add missing PO2SOconfigx() hook to ecx_reconfig_slave()
2021-08-02 20:58:30 +02:00
ArthurKetels
6982a7648f
Add missing PO2SOconfigx() hook to ecx_reconfig_slave()
2021-08-02 20:52:22 +02:00
Yves Schmid
c90c1abd1f
matching call to timeEndPeriod and timeBeginPeriod
...
"You must match each call to timeBeginPeriod with a call to
timeEndPeriod, specifying the same minimum resolution in both calls."
2021-07-13 09:13:03 +02:00
ArthurKetels
219670218b
Merge pull request #521 from nakarlsson/master
...
Adjust size of ec_EOE_t to max mailbox size
2021-06-02 21:02:23 +02:00
andreas karlsson
9de0889802
Adjust size of ec_EOE_t to max mailbox size
...
fix #514
2021-06-02 20:18:25 +02:00
nakarlsson
f9db4f2b23
Merge pull request #486 from ntd/simple_test-revamp
...
simple_test revamp
2021-04-12 07:45:09 +02:00
Nicola Fontana
a50ed4bf4c
Add simple_ng test program
...
This is a rewrite of `simple_test` with the following major changes:
* portable codebase, so no splitting between different OS;
* no threads: they are not needed for such simple task;
* use newer APIs (i.e., ecx_... functions).
2021-04-10 16:49:17 +02:00
nakarlsson
2573834ade
Merge pull request #499 from alexkalmuk/fix-osal-linux-time
...
Fix linux osal timers and osal_current_time
2021-04-08 06:54:10 +02:00
nakarlsson
1568fd59be
Merge pull request #498 from alexkalmuk/firm-update-test-check-state
...
Check for reaching pre_op state in firm_update
2021-04-07 19:42:22 +02:00
Alex Kalmuk
cd7acdc78f
Fix linux osal timers and osal_current_time
2021-04-07 12:11:29 +03:00
Alex Kalmuk
8aa894bc34
Check for reaching pre_op state in firm_update
2021-04-06 20:46:29 +03:00
nakarlsson
25e36e44f3
Merge pull request #496 from alexkalmuk/fix-red-test-timespec-overflow
...
Fix red test timespec overflow
2021-04-06 14:49:15 +02: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
nakarlsson
b5f58d2130
Merge pull request #481 from alex-brinkman/apb-add-userdata
...
Proposal: Add Userdata to ecx_context
2021-03-04 15:27:50 +01:00
Alex Brinkman
bb303a645f
add userdata initialization to default ecx_contextt
2021-02-18 09:30:33 -08:00
Alex Brinkman
9a077ddd39
add STATUS to CMake message statements
2021-02-18 09:11:29 -08:00
nakarlsson
d548e9907d
Merge pull request #480 from hefloryd/feature/gh-actions
...
Migrate to Github Actions
2021-02-17 15:39:27 +01:00
Hans-Erik Floryd
44fa68a5a9
Migrate to Github Actions
2021-02-17 13:53:41 +01:00
Alex Brinkman
e0c3806045
improved logic around BUILD_TESTS
2021-02-14 09:22:48 -08:00
Alex Brinkman
59821cb410
add userdata to ec_context
2021-02-13 12:26:38 -08:00
Hans-Erik Floryd
61668c71b7
Merge pull request #471 from jorritolthuis/master
...
Change include in ethercateoe.h
2021-01-03 14:34:09 +01:00
Jorrit Olthuis
5550c445d8
Change include in ethercateoe.h ( #470 )
2021-01-02 11:15:08 +01:00
ArthurKetels
342ca8632c
Merge pull request #460 from OpenEtherCATsociety/ArthurKetels-add_timespec
...
Arthur ketels add timespec
2020-11-09 22:46:25 +01:00
ArthurKetels
2c1b9b2756
Update red_test.c
2020-11-09 22:41:50 +01:00
ArthurKetels
4b4cdc2c45
Fix add_timespec
2020-11-09 22:39:56 +01:00
ArthurKetels
d9261e801d
Merge pull request #454 from nakarlsson/master
...
Fix llvm compiler implicit-int-conversion warnings
2020-10-12 22:09:27 +02:00
Andreas Karlsson
447d184d7e
Fix llvm compiler implicit-int-conversion warnings
...
* use uint8 for idx
* make config Isize/Osize uint32
* generally, align sizes in functions to HW objects
* Fix non-standard [0] size data array in EoE struct
2020-10-12 16:24:42 +02:00
ArthurKetels
b01ceb9905
Merge pull request #452 from OpenEtherCATsociety/AK-fix-SoE-mapping
...
Fix bug in ecx_readIDNmap(), Osize and Isize
2020-10-01 23:02:47 +02:00
ArthurKetels
cbc8f36e87
Fix bug in ecx_readIDNmap(), Osize and Isize
...
Osize and Isize where reset to 16 at every new drive number, thus loosing all lower drive mapping data. Changed to add 16 to Osize and Isize.
2020-10-01 23:00:01 +02:00
ArthurKetels
f69b1ab702
Merge pull request #436 from nakarlsson/master
...
Don't always include optional IP parameter lengths
2020-08-18 15:56:47 +02:00
Andreas Karlsson
101ac54a7d
Don't always include optional IP parameter lengths
...
Obvious fix, the optional IP parameters length should
only be included in total length if they are included.
fixes #421
2020-08-18 15:47:36 +02:00
ArthurKetels
f938df6bac
Merge pull request #435 from OpenEtherCATsociety/revert-431-master
...
Revert "EoE and Distributed clock fixes"
2020-08-18 15:40:50 +02:00