Commit Graph

95 Commits

Author SHA1 Message Date
Florian Pose 240080f110 Implemented new timer interface for mini example since kernel 6.15. 2025-06-10 11:53:59 +02:00
Bjarne von Horn d06a18f934 Fix -Wold-style-declaration. 2025-02-05 12:58:56 +01:00
Florian Pose 4fe6b87f89 Added missing prototypes. 2024-05-22 11:00:25 +02:00
Florian Pose cbc1c22eaa Merge branch 'prepare-1.6' into 'devel-1.6'
Prepare release 1.6

See merge request etherlab.org/ethercat!113
2024-02-01 14:22:15 +00:00
Florian Pose ee55c20e28 Fixed mail address; limited lines to 78 characters; removed $Id$. 2024-02-01 15:15:41 +01:00
Bjarne von Horn 7727ac725d Use spinlocks in ec_mini.ko examples
down() must not be used in softirq context:
```
[  613.686994] BUG: sleeping function called from invalid context at ../kernel/locking/semaphore.c:58
[  613.687003] in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 29, name: ktimers/1
[  613.687007] preempt_count: 0, expected: 0
[  613.687009] RCU nest depth: 3, expected: 0
[  613.687013] CPU: 1 PID: 29 Comm: ktimers/1 Tainted: G        W  OE      6.1.38-lp154.12-0601rt #1 1ef8e7f7e45a6388beff51e7b17265074b1375d6
[  613.687020] Hardware name: ICP / iEi IMBA-9454ISA/IMBA-9454ISA(E168), BIOS 080014  02/20/2009
[  613.687023] Call Trace:
[  613.687029]  <TASK>
[  613.687034]  dump_stack_lvl+0x44/0x5c
[  613.687046]  __might_resched+0x171/0x1c0
[  613.687055]  ? check_slave_config_states+0x100/0x100 [ec_mini 7f93b9d1541d0037eab9400e73ee29f252250780]
[  613.687070]  down+0x1e/0x70
[  613.687076]  cyclic_task+0x11/0xdc [ec_mini 7f93b9d1541d0037eab9400e73ee29f252250780]
[  613.687088]  call_timer_fn+0x29/0x190
[  613.687096]  run_timer_softirq+0x4d5/0x570
[  613.687104]  ? __schedule+0x32b/0x1330
[  613.687110]  __do_softirq+0xd5/0x2ec
[  613.687117]  ? smpboot_thread_fn+0x23/0x300
[  613.687127]  run_timersd+0x60/0xb0
[  613.687130]  smpboot_thread_fn+0x24c/0x300
[  613.687133]  ? smpboot_unregister_percpu_thread+0x70/0x70
[  613.687135]  kthread+0x129/0x140
[  613.687138]  ? kthread_complete_and_exit+0x20/0x20
[  613.687141]  ret_from_fork+0x22/0x30
[  613.687146]  </TASK>
```
2024-02-01 14:09:00 +01:00
Bjarne von Horn 2e071ad680 Remove EtherCAT copyright notice. 2024-02-01 09:18:26 +01:00
Bjarne von Horn 52247cfc14 Remove 2.6 conditionals in example 2024-02-01 09:12:55 +01:00
Bjarne von Horn 73e6ea9ce6 support out-of-tree build
by replacing `src` variable in Kbuild files.
2023-09-11 11:43:39 +02:00
Nicola Fontana 82399a9239 Revive 'make distcheck' 2021-06-22 14:43:07 +00: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 2b2c7c9613 Applied 0002-use-setup_timer-for-v4.15.patch from Beckhoff. 2018-01-30 17:09:33 +01:00
Florian Pose b0b7e6fde4 Removed trailing spaces. 2012-09-06 20:22:24 +02:00
Florian Pose f739694670 Improved compiling on 2.6.34 (thanks to Malcolm Lewis). 2010-10-25 16:45:33 +02:00
Florian Pose 6e06798fb2 Use kernel's modules_install target, instead of building our own. Attention:
Module installation directories have changed!
2010-02-23 17:37:02 +01:00
Florian Pose 69da1f1cb2 Improved handling and installation of the modules' symbol versions. 2010-02-16 15:08:54 +01:00
Martin Troxler bf63d965d8 Merge 2009-11-19 14:44:57 +01:00
Martin Troxler dfeb99b1cb applied komax patch to version r1822
- adapted to 2.6.31 (-rt): init_MUTEX -> sema_init, net_device_ops (Matthias Lüscher)
- 8139too eth driver for 2.6.31 (Matthias Lüscher)
- scan_busy queryable in user mode (ec_master_info_t) (Martin Troxler)
- read alias from register 0x0012 (TODO: reread alias after sii write) (Martin Troxler)
- cancel external SDO/FOE,Reg&SII requests (Martin Troxler)
2009-11-19 14:39:10 +01:00
Florian Pose f411a51ca6 Re-added callback data pointer, because it is necessary for some applications. 2009-07-29 09:19:53 +00:00
Florian Pose bb8370c5e8 Added semaphore header distinction in minimal example. 2009-07-13 15:26:28 +00:00
Florian Pose a3c32e8b67 Improved the callback mechanism. 2009-07-13 15:18:28 +00:00
Florian Pose cc6e9a7c79 Symbol versions; Makefile improvements. 2009-05-07 08:44:00 +00:00
Florian Pose 3f6da06083 Removed IS_ERR() from minimal example. 2009-04-06 09:48:01 +00:00
Florian Pose 12c12b1bab Improved and added license headers. 2009-02-24 12:51:39 +00:00
Florian Pose 826ae37b26 merge -c1604 branches/stable-1.4: Fixed spelling of EtherCAT terms. 2009-01-26 11:45:30 +00:00
Florian Pose 5ca3d24337 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only. 2009-01-26 11:16:10 +00:00
Florian Pose 96d794582e Used ERR_PTR() macro for return value of ecrt_request_master(). 2008-10-01 10:06:51 +00:00
Florian Pose f2e1893b3d mini top. 2008-09-03 15:36:28 +00:00
Florian Pose 12d30c487a Added VoE handler. 2008-09-01 14:17:18 +00:00
Florian Pose a2e6a8f815 Added analog output to minimal example. 2008-08-01 08:11:23 +00:00
Florian Pose 5e8c08f6cb Alternative Pdo assignment for el3162. 2008-07-29 11:37:29 +00:00
Florian Pose d871e4fd08 Renamed ecrt_slave_config_sync_managers() to ecrt_slave_config_pdos();
Added EC_MAX_SYNC_MANAGERS to ecrt.h.
2008-07-02 14:06:10 +00:00
Florian Pose 93a66a3573 Removed MSR example; adapted RTAI example; README files for examples. 2008-07-02 12:16:48 +00:00
Florian Pose 131bcd7203 Added Kbuild files to BUILT_SOURCES in Makefile.am files to create dependencies. 2008-06-30 15:51:46 +00:00
Florian Pose cf54c042c4 Adapted minimal example to sync manager configuration interface. 2008-06-26 14:28:09 +00:00
Florian Pose 258ec19c99 Fixed analog in position. 2008-06-18 11:24:31 +00:00
Florian Pose dae25376a5 Minor changes to minimal example. 2008-06-18 11:21:32 +00:00
Florian Pose 4688b35ada Implemented ecrt_slave_config_state(); minor changes in
ec_master_state_t and ec_slave_config_state_t; adapted example.
2008-06-18 10:13:58 +00:00
Florian Pose 066546e81c Removed ecdb.h 2008-04-25 14:38:11 +00:00
Florian Pose 791aa6d3d1 Added vim modelines and properties. 2008-04-08 11:52:51 +00:00
Florian Pose fc60cae9c7 Implemented Sdo timeout. 2008-04-03 14:08:08 +00:00
Florian Pose 593a5fda9c Changed terms "Pdo mapping" -> "Pdo assignment" and "Pdo configuration"
-> "Pdo mapping"; created ecrt_slave_config_pdo_assign_clear() and
ecrt_slave_config_pdo_mapping_clear().
2008-04-03 13:34:13 +00:00
Florian Pose 208fc51910 Introduced EC_MAP_END. 2008-03-31 09:42:37 +00:00
Florian Pose 90ae651e00 Minor changes. 2008-03-13 12:31:09 +00:00
Florian Pose f28f42ceb1 Introduced ec_sdo_request_state_t, making ec_request_t private again;
therefore added EC_REQUEST_INIT and renamed EC_REQUEST_IN_PROGRESS to
EC_REQUEST_BUSY and EC_REQUEST_COMPLETE to EC_REQUEST_SUCCESS.
2008-03-04 11:37:51 +00:00
Florian Pose e90dab2a4e Basic reading realtime Sdo access working. 2008-03-04 09:57:36 +00:00
Florian Pose 66f3b77517 Removed 'const' from Pdo configuration entries. 2008-03-03 11:42:05 +00:00
Florian Pose 88017c1555 Cross blinking. 2008-02-29 08:27:17 +00:00
Florian Pose 8532abfc91 Cleaned up mini module. 2008-02-22 17:31:00 +00:00
Florian Pose b4322990e2 Calculate expected working counter for domains. 2008-02-22 17:23:05 +00:00