Florian Pose
74ec61add4
Execute master FSM in fast mode also if slave FSM are busy.
2022-06-08 16:11:43 +02:00
Florian Pose
26e5b9f553
Minor: Fixed indent.
2022-05-17 14:10:51 +02:00
Bjarne von Horn
d301cbb992
Fix setting mac_address
...
eoe->dev->dev_addr is read_only in 5.17.0
using eth_hw_addr_set instead
2022-05-17 12:17:28 +02:00
Florian Pose
49135bfaff
Centrally defined mailbox types.
2022-03-04 10:00:47 +01:00
Matthias Schoepfer
e6d842cc8f
master: added 'run_on_cpu' module parameter to bind kthreads to a cpu
...
When you use isolcpus to isolate a cpu for the realtime task, as well
as assiging all relevant interrupts to this cpu, it makes sense to
also bind the EtherCAT-OP / EtherCAT-IDLE task to this cpu to reduce
the cache misses and avoid data migration between cores. Therefore
a parameter 'run_on_cpu' is added, that takes the cpu number (same as
in isolcpus, not a smp_affinity mask). If unset, will bind to any cpu
and will be migratable.
The reason to put this into the kernel module is, that the thread is
created during runtime, i.e. when the userspace program is starting
the ethercat master. It would be rather hacky, to find the pid of the
EtherCAT-xx thread and migrate it at this point.
Signed-off-by: Matthias Schoepfer <m.schoepfer@rethinkrobotics.com>
2021-09-27 14:56:01 +02:00
Florian Pose
eba73fc292
Strictly using KERN_CONT for continued printk() calls to avoid newlines.
2021-09-01 11:00:49 +02:00
Florian Pose
09d1096623
Avoided warning about unreasonable use of strncpy().
2021-08-25 12:00:01 +02:00
Florian Pose
4e11a50670
Define set_normal_priority() inside #ifdef EC_EOE. Fixes #12 .
2021-08-25 09:47:26 +02:00
Florian Pose
a750e08884
Merge branch 'feature-flags' into 'stable-1.5'
...
Feature Flags / AssignToPdi
See merge request etherlab.org/ethercat!30
2021-08-24 10:15:10 +00:00
Florian Pose
9ec0eb6295
Merge remote-tracking branch 'gitlab/stable-1.5' into stable-1.5
2021-08-10 14:49:56 +02:00
Florian Pose
e3d9056cbc
Added export for ecrt_slave_config_reg_pdo_entry_pos(). Fixes #11 .
2021-08-10 14:48:07 +02:00
Florian Pose
441b7e470e
First feature flag: AssignToPdi.
2021-07-23 16:16:18 +02:00
Florian Pose
443a7ad3e3
Find flag method with const char * parameter; added method to header.
2021-07-23 16:15:05 +02:00
Florian Pose
a178c9e452
Added feature flags to API.
2021-07-23 15:53:11 +02:00
Florian Pose
cd0d17d6a5
Also changed license of gloabl headers to LGPL.
...
Moved definition of EC_SDO_INJECTION_TIMEOUT to master.c.
2021-07-23 13:33:54 +02:00
Florian Pose
edd473c36b
Corrected license text of master/ioctl.h, because it is included in the userspace library.
2021-07-22 16:38:53 +02:00
Nicola Fontana
82399a9239
Revive 'make distcheck'
2021-06-22 14:43:07 +00:00
Florian Pose
94f2fa860f
Retry responding slaves datagram; more robust to timeouts.
2021-06-01 16:53:06 +02:00
Nicola Fontana
60dd78485c
Do not include AC_CONFIG_FILES in BUILT_SOURCES
...
BUILT_SOURCES is used to trigger early generation of files in the `make`
process to workaround dependency problems:
https://www.gnu.org/software/automake/manual/html_node/Sources.html
AC_CONFIG_FILES are generated by `configure`, so they are already
present in the file system even before `make` is called. Furthermore,
AC_CONFIG_FILES already properly handle dist and clean targets, so no
need to add them to EXTRA_DIST or DISTCLEANFILES:
https://www.gnu.org/software/automake/manual/html_node/Requirements.html
2021-05-22 08:25:26 +02:00
Florian Pose
b87076135e
Use Git for version detection and tools.
2021-03-17 14:51:35 +01:00
Nicola Fontana
2600c89390
Fix sched_setscheduler undefined on kernel 5.9
...
sched_setscheduler is no more exported:
https://lkml.org/lkml/2020/4/22/1071
2021-03-05 15:16:15 +01:00
Florian Pose
7fd991bec7
Improved debugging and behavior on sick SII contents.
2020-09-03 12:53:53 +02:00
Florian Pose
21d0fb5176
Fixed missing include for struct sched_param.
2020-04-03 12:09:39 +02:00
Florian Pose
af90fa6a94
New page fault return type vm_fault_t since 4.17.
2020-04-03 12:00:24 +02:00
Florian Pose
2570ab3345
Fixed infinite waiting for SoE write response.
2020-01-24 14:36:43 +01:00
Florian Pose
0a14b16aef
Using vmalloc() for FoE memory allocation.
2020-01-24 11:09:48 +01:00
Florian Pose
f03f15a6fc
Added ecrt_master_sync_reference_clock_to() method.
2018-11-26 17:41:27 +01:00
Florian Pose
083bd419b8
Renamed app_start_time to dc_ref_time; output via command-line tool.
2018-11-26 17:17:18 +01:00
Florian Pose
0257660396
Fixed working counter calculation when process data of the same slave are
...
split into separate datagrams.
2018-11-12 15:02:49 +01:00
Florian Pose
538c3d7c04
Improved buffer overflow messages.
2017-12-13 15:39:13 +01:00
Florian Pose
a694e3055f
Support scheduler parameters in kernels >= 4.11.
2017-12-06 10:09:50 +01:00
Florian Pose
39919cd96a
Fixed statistics filter initialisation.
2017-10-12 13:22:06 +02:00
Florian Pose
06ab4c34a8
Doc.
2017-10-12 13:09:52 +02:00
Philipp Weyer
e709444450
Fixed vm_fault.
2017-09-04 17:24:46 +02:00
Florian Pose
cf8227a71b
Adapted vm_operations_struct for kernels >= 4.11
2017-09-04 17:12:59 +02:00
Florian Pose
545d4e548c
Use SYNC0 + SYNC1 cycle times for cyclic start time generation.
2016-09-16 12:35:09 +02:00
Florian Pose
c7f2a93cc5
merge
2016-09-16 11:56:53 +02:00
Florian Pose
8f599d1eb8
Always clear PDO mapping in ecrt_slave_config_pdos().
2016-09-16 11:56:10 +02:00
Florian Pose
a5cfa32f4b
Fixed fragmented SoE write request.
2016-05-13 17:43:00 +02:00
Florian Pose
8812d5bf73
Always clear PDO assignment of configured sync managers.
2016-01-22 10:11:58 +01:00
Florian Pose
00156fb424
New alloc_netdev() API since kernel 3.17.
2015-05-07 15:53:42 +02:00
Florian Pose
b6930dfa9b
Fixed possible NULL pointer dereference; thanks to Matthieu Bec.
2014-05-05 13:49:45 +02:00
Florian Pose
b0e45dbd6c
Output datagram stats only if EC_RT_SYSLOG.
2013-12-04 19:53:59 +01:00
Florian Pose
e385a9bb62
Added configure switch --disable-rt-syslog.
2013-10-21 19:27:50 +02:00
Florian Pose
605739d78a
Introduced FORCE_OUTPUT_CORRUPTED.
2013-05-21 13:18:24 +02:00
Florian Pose
b0eace9ef1
Implemented emergency register requests to analyze a broken bus.
2013-05-13 20:21:19 +02:00
Florian Pose
a0e44766ec
Fixed FoE timeout calculation bug.
2013-02-14 11:17:33 +01:00
Florian Pose
b8d541fd33
Improved FoE debug messages.
2013-02-14 11:15:25 +01:00
Florian Pose
a4ecaf8b88
Some more doxygen documentation.
2013-02-12 17:15:09 +01:00
Florian Pose
f6f5460485
Updated Doxygen documentation.
2013-02-12 15:46:43 +01:00