Commit Graph

1164 Commits

Author SHA1 Message Date
Florian Pose 6161473018 Switched from Subversion to Mercurial. 2009-08-13 15:18:53 +02:00
Florian Pose 10c7501851 Implemented CompleteAccess for SDO downloads. 2009-08-13 13:53:56 +02:00
Florian Pose 4099c6905b Check for NULL pointer in ecdev_receive(). 2009-08-11 12:15:20 +00:00
Florian Pose c2cf92f9ec Fixed setting watchdog intervals. 2009-08-06 12:52:53 +00:00
Florian Pose 0663090dcc Output watchdog configuration in ethercat config. 2009-08-04 12:52:12 +00:00
Florian Pose 694838c9f6 Fixed compiler error on --disable-eoe. 2009-08-04 07:54:16 +00: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 4f4ac6e4fa Added watchdog configuration via application interface (thanks to J. Mohre). 2009-07-27 10:48:52 +00:00
Florian Pose 735f1efbc1 Removed unwanted tabulators. 2009-07-27 10:37:47 +00:00
Florian Pose a3c32e8b67 Improved the callback mechanism. 2009-07-13 15:18:28 +00:00
Florian Pose 5ac0980aba Fixed SDO upload segment response (thanks to Christoph Peter). 2009-07-10 10:37:14 +00:00
Florian Pose 87bd9ded3e Reverted accidential checkin. 2009-07-10 09:38:07 +00:00
Florian Pose 36ff1cb8fa TODO. 2009-07-10 09:36:50 +00:00
Florian Pose 1694ef18d7 Zero mailbox datagram before sending. 2009-07-09 14:05:36 +00:00
Florian Pose 18d3eb982e Configure PDO sync managers even if no configuration has been applied. 2009-07-09 12:54:49 +00:00
Florian Pose f7e14d2915 EoE processing with kthread. 2009-06-30 11:11:56 +00:00
Florian Pose e9b881e6db Output device opened/closed only on debug level 2. 2009-06-29 14:27:06 +00:00
Florian Pose 70d8767f7c Minor: Changed comment style. 2009-06-29 14:25:31 +00:00
Florian Pose 5176ca3cf3 EoE transmit retry; EoE warnings. 2009-06-26 12:21:56 +00:00
Florian Pose 1baa06d05b ethercat eoe command. 2009-06-26 09:46:57 +00:00
Florian Pose 2bb56b4f15 Debug statements with EC_DBG() in EoE code. 2009-06-26 08:00:47 +00:00
Florian Pose 2a7052264b Minor: vendor/product with 8 hex digits. 2009-06-26 07:44:50 +00:00
Florian Pose 41dec510d5 merge -c1788 branches/stable-1.4: ec_master.symvers installation. 2009-06-19 14:41:06 +00:00
Florian Pose a30c09c05b Implemented new network device operations for kernel 2.6.29, thanks to M. Goetze. 2009-06-16 08:30:49 +00:00
Florian Pose d1ef052122 Continue with next sync manager if reading the PDOs failed. 2009-06-15 15:58:09 +00:00
Florian Pose 534c605e4f Fixed mailbox usage for slaves that do not provide sync manager
configurations.
2009-06-15 15:46:04 +00:00
Florian Pose aad3434dd3 Minor. 2009-06-15 15:39:26 +00:00
Florian Pose acd5a56616 Improved newlines in debug data output. 2009-06-15 15:29:24 +00:00
Florian Pose cd480be3a1 Improved error checking on SDO upload. 2009-06-15 12:33:48 +00:00
Florian Pose ee89b28e5a Added documentation. 2009-05-15 09:05:27 +00:00
Florian Pose 8e9761b1e2 Debugging output. 2009-05-07 12:25:10 +00:00
Florian Pose 2550b77338 Slightly improved CoE download expedited request. 2009-05-07 11:41:45 +00:00
Florian Pose a1def17259 Output DC config in 'ethercat config'. 2009-05-07 10:33:26 +00:00
Florian Pose 2002b73569 Added EC_IOCTL_APP_TIME. 2009-05-07 10:11:21 +00:00
Florian Pose cc6e9a7c79 Symbol versions; Makefile improvements. 2009-05-07 08:44:00 +00:00
Florian Pose ceec75bf50 Always set DC reference clock to OP. 2009-05-06 15:06:46 +00:00
Florian Pose 7e600a6301 Merged ecrt_slave_config_dc_assign_activate() and
ecrt_slave_config_dc_sync_signals() to ecrt_slave_config_dc().
2009-05-05 15:03:59 +00:00
Florian Pose d7a38aaf29 Added scan_busy flag to ioctl(). 2009-05-05 10:01:55 +00:00
Florian Pose af712c4a43 Fixed usage of IS_ERR() in FoE state machine. 2009-05-05 09:57:42 +00:00
Florian Pose 959c19fefd Introduced EC_AL_STATE_CHANGE_TIMEOUT and set it to 2 s. 2009-05-05 09:50:04 +00:00
Florian Pose d8177f03ee Unset idle flag while processing FoE requests. 2009-05-05 09:45:31 +00:00
Florian Pose ef854c1c93 Changed EC_MAX_SII_SIZE to 4096. 2009-05-05 09:43:32 +00:00
Florian Pose c39919e6cc Replaced ecrt_slave_config_dc_cycle_times() and ecrt_slave_config_dc_shift_times() by ecrt_slave_config_dc_sync_signals(). 2009-05-04 12:46:30 +00:00
Florian Pose 6935cbb247 Use application start time as a common reference for cyclic generation
start times.
2009-05-04 12:11:00 +00:00
Florian Pose 4c1c3fe289 Take ref clock address from dc_ref_clock pointer. 2009-05-04 12:10:11 +00:00
Florian Pose a34809e18d Separated application time from synchronizing reference clock. 2009-05-04 10:05:55 +00:00
Florian Pose 5401cb1a6d Set system time transmission delay during config. 2009-04-30 16:04:44 +00:00
Florian Pose f057a0f968 Transition->Transmission. 2009-04-30 14:37:02 +00:00
Florian Pose 29eb2d7d06 Transition delay calculation. TBC... 2009-04-30 14:12:47 +00:00
Florian Pose f4b6807cc9 Bus topology calculation. 2009-04-29 09:43:04 +00:00
Florian Pose d427828ecc Measure port receive times. 2009-04-27 15:20:14 +00:00
Florian Pose 69da9e5524 Determine type of DC implementation (full or delay meas. only); update scan FSM graph. 2009-04-27 11:38:03 +00:00
Florian Pose d3303e0fa4 Replaced timeval by 64-bit EtherCAT time. 2009-04-24 10:24:53 +00:00
Florian Pose b106be8342 Added missing doc. 2009-04-24 09:51:11 +00:00
Florian Pose 40bb1edaec Output reference clock and application time in 'ethercat Master'. 2009-04-24 08:39:20 +00:00
Florian Pose ddd707d8be Userspace library implementation of DC functions. 2009-04-23 14:45:07 +00:00
Florian Pose 4b4dc8a5b5 DC shift time working. 2009-04-23 12:25:09 +00:00
Florian Pose fe56cc111c Separated sync_reference_clock() and sync_slave_clocks(). 2009-04-23 12:02:26 +00:00
Florian Pose 5e79dc8c06 Find DC reference clock. 2009-04-20 14:33:47 +00:00
Florian Pose 59a9094b2a Improved DC configuration. 2009-04-20 13:43:57 +00:00
Florian Pose 2395d3a876 Clear DC assignment after going to INIT. 2009-04-20 11:53:17 +00:00
Florian Pose 5ed436bb6a Minor changes. 2009-04-20 10:27:36 +00:00
Florian Pose 9f54862108 Tested clearing slave list after link down; minor changes. 2009-04-20 09:17:39 +00:00
Florian Pose b7e06d12f4 Output link state in 'ethercat master'. 2009-04-17 12:55:55 +00:00
Florian Pose 515a66aa8e Clear slave list on link down. 2009-04-17 12:41:57 +00:00
Florian Pose 4694cde027 Added debug_level module parameter. debug_level is now unsigned int. 2009-04-17 12:03:12 +00:00
Florian Pose 2c81e5b9b4 Removed unused variable. 2009-04-17 11:07:27 +00:00
Florian Pose 47abdd4a41 Introduced DEBUG_IOCTL. 2009-04-17 10:39:19 +00:00
Florian Pose 0dd5ec3567 DC sync reference clock to application time. TBC... 2009-04-09 18:21:18 +00:00
Florian Pose de1a332eee Introduced ecrt_master_sync() for synchronizing slave clocks to reference clock. 2009-04-09 10:21:47 +00:00
Florian Pose e3b1d8e573 DC cyclic operation and slave configuration. TBC... 2009-04-09 09:17:41 +00:00
Florian Pose 7f97ba66a2 Renamed phy_ commands to reg_. 2009-04-08 12:48:59 +00:00
Florian Pose 9483b8e1ae Check phy_request length for read operations, too! 2009-04-08 11:48:00 +00:00
Florian Pose 0bedfe5ef8 Process working counter of phy_* commands. 2009-04-08 10:27:48 +00:00
Florian Pose da1c5588de Read SDO entry access rights. 2009-04-08 08:13:33 +00:00
Florian Pose 19d7da4ad3 Fixed VoE ioctl(). 2009-04-07 12:53:37 +00:00
Florian Pose 01aeadbc73 Improved phy debugging. 2009-04-07 09:37:07 +00:00
Florian Pose 205891e412 Reading more base information (incl. whether DC supported). 2009-04-07 09:00:20 +00:00
Florian Pose 478a0f2a69 Warn if going to SAFEOP without configuration. 2009-03-19 08:44:48 +00:00
Florian Pose a5752e0123 Preparations to compile against 2.6.27. 2009-03-09 09:08:09 +00:00
Florian Pose 12c12b1bab Improved and added license headers. 2009-02-24 12:51:39 +00:00
Florian Pose 07fffd62f9 Fixed SDO upload via library. 2009-02-24 10:16:24 +00:00
Florian Pose f73cdc7a6b Fixed SDO download via library. 2009-02-24 10:03:53 +00:00
Florian Pose e745837fed Implemented SDO requests in userspace library. 2009-02-02 13:37:00 +00:00
Florian Pose fe10563a36 Added ec_slave_config_find_sdo_request(). 2009-02-02 13:34:01 +00:00
Florian Pose e60948f4e1 Minor fix in VoE handler. 2009-02-02 13:32:48 +00:00
Florian Pose 5ea60780a0 Fixed FoE request states. 2009-01-30 10:56:06 +00:00
Florian Pose 96ea8a76b8 Fixed usage of internal request states. 2009-01-30 10:50:21 +00:00
Florian Pose 6a5e90c4b1 Allow the slave to not respond to the mailbox sync manager configuration
datagram for a certain time.
2009-01-27 14:14:37 +00:00
Florian Pose 682735201c Added missing files to dist. 2009-01-27 09:40:05 +00:00
Florian Pose d137632ae4 TODO. 2009-01-26 16:38:39 +00:00
Florian Pose 50abafdb1f Debug message. 2009-01-26 16:35:50 +00:00
Florian Pose c94059e5fb Fixed spacing and comments. 2009-01-26 16:23:09 +00:00
Florian Pose fa17bbb5a8 Clear sync managers before configuration. 2009-01-26 16:01:13 +00:00
Florian Pose 8c76942245 merge -c1635 branches/1.4-foe: Removed todo line. 2009-01-26 14:14:17 +00:00
Florian Pose 75992b9aa4 merge -c1622 branches/1.4-foe: Fixed seg_size parameter when processing an CoE Upload Segment Response. 2009-01-26 14:13:50 +00:00
Florian Pose 40ee89a77f merge -c1621 branches/1.4-foe: Introduced configured_[tr]x_mailbox(size|offset) members of slave. 2009-01-26 13:28:19 +00:00
Florian Pose 5d4b915317 merge -c1619 branches/1.4-foe: Implemented going to bootstrap state BOOT. 2009-01-26 13:22:05 +00:00
Florian Pose 8d45915fc4 merge -c1618 branches/1.4-foe: Improved FoE. 2009-01-26 13:09:27 +00:00
Florian Pose 7a703ecb05 merge -c1616 branches/1.4-foe: Included FoE patch from Olav Zarges. 2009-01-26 13:01:58 +00:00
Florian Pose 7e69daf7dd merge -c1614 branches/stable-1.4: Fixed datagram cleaning. 2009-01-26 11:59:07 +00:00
Florian Pose 723a9d66f4 merge -c1610 branches/stable-1.4: Added missing doxygen docs. 2009-01-26 11:58:35 +00:00
Florian Pose 121cfd7098 merge -c1606 branches/stable-1.4: Output vendor Id in hex. 2009-01-26 11:46:38 +00:00
Florian Pose 7b4542ac81 merge -c1605 branches/stable-1.4: Output ioctl() debugging in hex. 2009-01-26 11:46:02 +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 c66d1cc62a merge -r1583:1593 branches/stable-1.4: Fixed detaching oops. 2008-11-25 14:07:19 +00:00
Florian Pose e643a71543 Output debug message only on debug level > 0. 2008-11-18 11:20:30 +00:00
Florian Pose fae8df09b0 Included ecrt_voe_handler_read_nosync()-Patch by Mathias Weber. 2008-11-18 11:13:49 +00:00
Florian Pose 8d46a283f6 Improved error case return codes of many functions. 2008-11-17 17:18:02 +00:00
Florian Pose bdbaf5d078 Created backend versions of all API functions returing a pointer; using
the PTR_ERR()... macros.
2008-11-17 15:04:28 +00:00
Florian Pose f552f81763 merge -c1582 branches/stable-1.4: Typo. 2008-11-06 15:46:40 +00:00
Florian Pose 8e7a370756 Create debug interface with address of physical device on attachment. 2008-11-05 15:05:40 +00:00
Florian Pose 72381046c2 merge -c1554 branches/stable-1.4: Fixed WC calculation for multiple datagrams. 2008-11-05 10:16:11 +00:00
Florian Pose 7fca697c8d Output corrupted frame reasons. 2008-11-05 09:59:20 +00:00
Florian Pose aca58d41d2 Build examples by default. 2008-10-21 09:58:19 +00:00
Florian Pose 59f197a6f0 Fixed page fault handler. 2008-10-21 09:26:19 +00:00
Florian Pose f8bff8668f merge -c1522 branches/stable-1.4: Fixed jace in jiffies timeout calculation. 2008-10-17 13:36:43 +00:00
Florian Pose b8f4c144de merge -c1521 branches/stable-1.4: Fixed race concerning ec_slave_config_state->operational. 2008-10-17 13:30:55 +00:00
Florian Pose dd257c430d Use .fault handler instead of .nopage handler from 2.6.23. 2008-10-16 09:21:30 +00:00
Florian Pose 7c3d71913c Maintained code docs. 2008-10-15 10:01:54 +00:00
Florian Pose d31df920e8 Implemented VoE handler in userspace. 2008-10-14 13:35:35 +00:00
Florian Pose 494a0ee4ac Added ec_slave_config_find_voe_handler(). 2008-10-14 09:56:38 +00:00
Florian Pose ca0a3dcf1b Added state functions; writing of process data works. 2008-10-10 09:37:06 +00:00
Florian Pose 4e6e86c808 Memory-mapped process data. 2008-10-10 08:34:15 +00:00
Florian Pose ffe107b658 Made ecrt_domain_size() const. 2008-10-10 07:58:48 +00:00
Florian Pose 95e60a2fec Added some slave configuration methods. 2008-10-09 13:31:50 +00:00
Florian Pose 7765e989c4 Added ec_master_get_config(). 2008-10-09 09:48:59 +00:00
Florian Pose 4104c786ac Applied patch by Mario Witkowski to support the new class/device
interface from kernel 2.6.26.
2008-10-09 09:00:48 +00:00
Florian Pose fb34ddb1f2 Activate, Send and received; cyclic timer with setitimer(). 2008-10-02 13:40:23 +00:00
Florian Pose 9e69d015b6 Creating slave configurations. 2008-10-02 10:45:40 +00:00
Florian Pose 2484105d5a Minor change. 2008-10-02 10:44:43 +00:00
Florian Pose cd4bb0a38b No kernel handles in userspace; Domain creation. 2008-10-02 10:19:02 +00:00
Florian Pose a4ea4a4590 First version of userspace library with requesting/releasing. 2008-10-01 14:42:28 +00:00
Florian Pose 488bf0a640 Moved threads to kthread interface. 2008-10-01 14:37:34 +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 426b0ab2d7 Avoided using #ifdef inside a macro. 2008-10-01 08:44:44 +00:00
Florian Pose 09f06703c2 Introduced ecrt_voe_handler_received_header(); renamed
ecrt_voe_handler_header() to ecrt_voe_handler_send_header().
2008-09-30 07:50:34 +00:00
Florian Pose 64e1d6f678 Introduced ec_datagram_zero(). 2008-09-30 07:34:55 +00:00
Florian Pose 186185dce4 Fixed VoE mailbox type. 2008-09-29 10:17:33 +00:00
Florian Pose ac42abd286 Added missing up(). 2008-09-29 09:51:48 +00:00
Florian Pose 86956a05c8 Only query Sdo information service, if slave supports it. 2008-09-24 08:32:55 +00:00
Florian Pose a82d2dbf39 Introduced VoE header. 2008-09-22 15:27:50 +00:00
Florian Pose b7d5fbfa8a Introduced EC_MBOX_HEADER_SIZE. 2008-09-22 15:26:54 +00:00
Florian Pose b02f75cd3a Changed VoE mailbox type to 0xff. 2008-09-22 14:43:40 +00:00
Florian Pose 4dfbf8e022 Added missing export. 2008-09-22 11:27:15 +00:00
Florian Pose 12d30c487a Added VoE handler. 2008-09-01 14:17:18 +00:00
Florian Pose 8c28c6363a merge -c1434 branches/stable-1.4: Fixed nodist. 2008-08-27 16:00:48 +00:00
Florian Pose d975aafa18 Added phy commands. 2008-08-13 13:23:52 +00:00
Florian Pose 17352d9e3b Fixed race concerning thread signaling when master thread had no
opportunity to run, but shall be killed immediately.
2008-08-08 13:47:23 +00:00
Florian Pose 908624d4d8 Fixed missing up(). 2008-08-08 13:42:46 +00:00
Florian Pose 99f622f1e8 Fixed missing up(). 2008-08-08 12:44:40 +00:00
Florian Pose 547d0123b0 TAGS creation. 2008-08-08 12:09:37 +00:00
Florian Pose d13057f99f Added some documentation. 2008-08-01 16:07:18 +00:00
Florian Pose 6db63d096d Use down_interruptible() wherever possible. 2008-08-01 12:46:26 +00:00
Florian Pose e647297b12 Attach Pdo names from dictionary. 2008-08-01 12:28:18 +00:00
Florian Pose b46070f279 Removed sync manager assign source. 2008-08-01 09:32:35 +00:00
Florian Pose 1cf5448e88 Added debugging for configuration function of the application interface. 2008-08-01 09:24:26 +00:00
Florian Pose 61994e0e0e Configure Pdos before configuring the Pdo sync managers,
to earlier detect problems with non-existing SM information.
2008-08-01 08:58:35 +00:00
Florian Pose 09a6ddc5a4 Fixed reconfiguration: Force config when application detaches. 2008-08-01 07:23:09 +00:00
Florian Pose d24c3cbbf7 Minor change. 2008-08-01 07:22:13 +00:00
Florian Pose 117557a16f Avoided compiler warning. 2008-07-31 16:17:53 +00:00
Florian Pose 5317b27ff9 Major Pdo configuration change: Read mapping of unknown Pdos during
configuration.
2008-07-31 16:13:29 +00:00
Florian Pose 60aa049b63 Only warn (and do not abort) if Pdo assignment/mapping configuration
fails, or is impossible.
2008-07-31 09:30:38 +00:00
Florian Pose cdd1315dbd Use expedited transfer type for Sdos <= 4 byte. 2008-07-29 09:04:55 +00:00
Florian Pose f82214e66e Fixed svnversion path argument. 2008-07-28 14:03:45 +00:00
Florian Pose 1f6e89a89f Display real ethernet address. 2008-07-28 13:23:07 +00:00
Florian Pose 373d8a7475 Fixed requested_state. 2008-07-25 14:14:47 +00:00
Florian Pose 4f81ef3ede Renamed state field to al_state. 2008-07-25 09:08:12 +00:00
Florian Pose 95d9d821cc Show attached slave position and state in 'ethercat config'. 2008-07-25 08:54:59 +00:00
Florian Pose e3caba45ab Force reconfiguration after attachment. 2008-07-24 15:06:47 +00:00
Florian Pose 7d9c12e91e Fixed SII reading timeout bug on 100 Hz kernels. 2008-07-22 08:56:53 +00:00
Florian Pose d4fec010cb Improved WC changes message. 2008-07-18 08:39:28 +00:00
Florian Pose 56cb9c7882 Sdo configuration debugging. 2008-07-17 12:25:15 +00:00
Florian Pose 46b310046e Fixed CoE transfer timeout bug. 2008-07-17 10:03:15 +00:00
Florian Pose 11e9531363 Improved timeout error messages. 2008-07-14 12:16:07 +00:00
Florian Pose d8d0e4ec4e Group/Image/Order strings in slave ioctl; order number as text content
in XML Type element.
2008-07-10 09:36:47 +00:00
Florian Pose 0a63897d3d Added ec_cdev_strcpy() function. 2008-07-10 09:31:03 +00:00
Florian Pose be63f1243b Using EC_END. 2008-07-04 16:54:26 +00:00
Florian Pose c0b7fca9b6 Improved source code doc. 2008-07-04 12:06:10 +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 8265fb115f Improved locking between ioctl()s and master state machine; separate
functions for ioctls(); removed master's sii_sem and sdo_sem.
2008-07-02 11:26:51 +00:00
Florian Pose 20911256c3 Added ec_master_find_domain_const(). 2008-07-02 09:22:55 +00:00
Florian Pose f10cc06840 Added ec_master_find_slave_const(). 2008-07-02 08:14:47 +00:00
Florian Pose d942e87cef Implemented master semaphore to secure concurrent access from ioctls, state machine and realtime interface. 2008-07-01 15:38:20 +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 be9e9fd07d Avoid duplicate reconfiguration. 2008-06-27 07:22:02 +00:00
Florian Pose 78278f1a6b Fixed sync manager direction bug. 2008-06-26 14:24:49 +00:00
Florian Pose 9bbbc4009d Minor change. 2008-06-26 14:24:29 +00:00
Florian Pose 88f5a2ac84 Begin reading of Pdo assignment at sync manager 2; removed some
debugging.
2008-06-26 14:03:33 +00:00
Florian Pose 444802186b Operational flag in 'ethercat config'. 2008-06-26 13:42:23 +00:00
Florian Pose dc9a3daa77 Configuration error, if sync manager configuration configuration with
assigned Pdos is not provided by slave.
2008-06-26 13:41:42 +00:00
Florian Pose a81228a587 Store sync manager configurations in ec_slave_config_t instead of Pdo
lists for each direction; changed realtime interface to allow sync
manager configuration.
2008-06-26 13:16:15 +00:00
Richard Hacker d6c87aa3b8 Return out of ecrt_slave_config_pdos() when pdo_infos == NULL 2008-06-24 10:55:40 +00:00
Florian Pose 5223684939 Central CoE timeouts; retry on CoE response mismatch. 2008-06-23 12:03:37 +00:00
Florian Pose 62611876e4 Added a timeout for Sdo configurations. 2008-06-23 10:31:26 +00:00
Florian Pose 4a6df220bb Added ec_pdo_list_print(). 2008-06-23 10:27:40 +00:00
Florian Pose 8bb85dba51 Added some debugging. 2008-06-23 10:26:47 +00:00
Florian Pose 4458a5fd62 Minor change. 2008-06-23 09:52:23 +00:00
Florian Pose a6b7657daf Fixed alias bug. 2008-06-20 13:38:35 +00:00
Florian Pose 28adf79a3c Introduced global upload timeout for fsm_coe_map. 2008-06-19 14:06:27 +00:00
Richard Hacker 86d0d12c62 Timeouts set for various uploads in FSM COE MAP 2008-06-19 13:52:12 +00:00
Florian Pose a11d897b5e Response timeout for checking Sdo upload. 2008-06-19 13:35:34 +00:00
Florian Pose c233259931 Removed state machine cycle time measuring. 2008-06-19 10:22:24 +00:00
Florian Pose cdd45226aa Disable use of CPU timestamp counter by default. 2008-06-19 10:18:58 +00:00
Florian Pose 02ccc34a1e Use jiffies instead of cycles in SII state machine. 2008-06-19 10:18:18 +00:00
Florian Pose 05cbdfd999 Use jiffies instead of cycles in CoE state machine. 2008-06-19 10:17:52 +00:00
Florian Pose 1415090d15 Store abort code in sdo request; output it in user space; added some
re_size checking in fsm_coe.
2008-06-19 09:24:22 +00:00
Florian Pose 4a6d031f92 Check for data sizes when reading Pdo assignment/mapping from CoE. 2008-06-19 08:06:49 +00:00
Florian Pose 10ce3ceda1 Added response timeout to sdo_request; removed timout from fsm_coe_map. 2008-06-19 07:54:45 +00:00
Richard Hacker 87cca35c84 Retry reading assigned pdos using timeout. 2008-06-18 15:03:03 +00:00
Florian Pose 4349375d28 Retry reading Pdo assignment. 2008-06-18 14:37:20 +00:00
Florian Pose dfa4860546 working_counter = 0x0000; 2008-06-18 14:37:00 +00:00
Florian Pose f03af4c38b Removed 'end' and 'error' states from master state machine. 2008-06-18 13:53:31 +00:00
Florian Pose 0ef150c812 Renamed master 'mode' to 'phase'. 2008-06-18 13:33:50 +00:00
Florian Pose d91aa97487 Removed configs_attached flag; changed return value of
ec_master_attach_slave_configs() to void.
2008-06-18 12:49:11 +00:00
Florian Pose ba99d87e54 Output attachment failure messages only when debugging. 2008-06-18 11:16:30 +00:00
Florian Pose 6535c4d9ed Minor change. 2008-06-18 11:15:36 +00:00
Florian Pose 6dd92542d7 Only load default assignment, if slave was attached. 2008-06-18 11:13:30 +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 af2c4efc0e Set slave_states to 0x00 when no slaves are present. 2008-06-18 09:27:04 +00:00
Florian Pose d7790d1d18 Removed some unnecessary code. 2008-06-18 08:59:00 +00:00
Richard Hacker 2d683ae0de Completed master states. 2008-06-17 14:24:33 +00:00
Florian Pose 2e6a9a955e Added support for different versions of class_device_create(). 2008-06-17 13:03:33 +00:00
Florian Pose dac0f3b575 Replaced include sysfs->device. 2008-06-17 13:02:56 +00:00
Florian Pose 25ffc9f638 Create class device with device_number information in sysfs. 2008-06-17 12:49:06 +00:00
Florian Pose 1553af9375 Create device class. Preparation for device numbers in sysfs. 2008-06-17 12:19:17 +00:00
Florian Pose 06f499078d Improved ecdev_offer(). 2008-06-17 10:19:52 +00:00
Florian Pose 9aa0789b33 Reverted revision number checking from r1228. 2008-06-17 09:44:46 +00:00
Florian Pose 541c2a0cd8 Added revision number to slave type checking. 2008-06-16 09:30:58 +00:00
Florian Pose d3f7c7bbd8 Added a few debugging messages. 2008-06-12 13:05:05 +00:00
Florian Pose e581c899f6 Minor change. 2008-06-12 13:03:50 +00:00
Florian Pose 6759569586 Fixed duplicate kfree() bug. 2008-06-12 13:00:32 +00:00
Florian Pose a2dc5419b7 Minor change. 2008-06-12 11:53:06 +00:00
Florian Pose 2f836e6e32 Fixed bug in slave scanning, causing a segmentation fault. 2008-06-12 09:49:35 +00:00
Florian Pose 985470c9b6 Removed EC_IOCTL_DOMAIN_COUNT. 2008-06-12 09:44:18 +00:00
Florian Pose e4c9a82a56 Store slaves in an array instead of a list. 2008-06-12 09:32:25 +00:00
Florian Pose d254ec906b Removed unnecessary code. 2008-06-12 09:19:06 +00:00
Florian Pose b54bc11567 Replaced a few GFP_ATOMIC allocations with GFP_KERNEL ones. 2008-06-12 08:31:06 +00:00
Florian Pose e2c03b9e77 Removed kobject from master and module. Sysfs is gone! 2008-06-12 08:12:02 +00:00
Florian Pose 1451da0cd0 Removed deprecated default_config flag. 2008-06-12 07:47:26 +00:00
Florian Pose 3197ca4a23 Removed kobject from slave_config. 2008-06-12 07:45:27 +00:00
Florian Pose fbdb093ec0 Clear domains before slave configs, because domain references the FMMU
configurations.
2008-06-12 07:32:05 +00:00
Florian Pose 448eb13820 Removed kobject from domain. 2008-06-12 07:26:38 +00:00
Florian Pose 22fe4a1841 Removed kobjects from sdo and slave. 2008-06-12 07:15:54 +00:00
Florian Pose 5f6dc8c5a1 Removed kobject from sdo entry. 2008-06-11 15:37:38 +00:00
Florian Pose 1132577dd9 Bus configuration via 'ethercat config'. 2008-06-11 15:29:47 +00:00
Florian Pose bc3c6f320a Slave information via 'ethercat slave'. 2008-06-11 13:01:21 +00:00
Florian Pose d28bf7ecbe Display error flag in 'ethercat ls'; cleaned up usage of error flag;
removed action_acknowledge.
2008-06-10 12:05:25 +00:00
Florian Pose 2a7a7e2e5c Replaced misleading %i by %u. 2008-06-10 11:54:39 +00:00
Florian Pose b5bee09143 Fixed calculation of expected working counter. 2008-06-10 09:54:30 +00:00
Florian Pose ded661f552 Output decoded ioctl command number. 2008-06-10 08:54:54 +00:00
Florian Pose 6249f1dd91 Implemented SII writing (including alias writing) via ethercat command. 2008-06-10 08:48:50 +00:00
Florian Pose ee57578c05 Renamed some fields in ec_sii_request_t to word addressing. 2008-06-09 14:32:16 +00:00
Florian Pose 0ee1c38030 Implemented SII read. 2008-06-09 13:45:22 +00:00
Florian Pose 96b3009e8e Moved sii to words. 2008-06-09 13:24:16 +00:00
Florian Pose e654535c2d Added debugging for sdo download. 2008-06-09 12:35:00 +00:00
Florian Pose 4c1696d415 Implemented Sdo download via ethercat command. 2008-06-09 12:11:19 +00:00
Florian Pose 2d79874a7b ioctl() permissions. 2008-06-09 10:29:28 +00:00
Florian Pose 149be786f1 Using Linux ioctl() number generation macros. 2008-06-09 10:27:56 +00:00
Florian Pose 5160d6be02 process Sdo requests even with error_flag set. 2008-06-06 15:16:37 +00:00
Florian Pose a85f8fc5d5 Implemented sdo_upload command. 2008-06-06 15:13:25 +00:00
Florian Pose a62466b7fe Added ec_slave_get_sdo_const(). 2008-06-06 13:03:56 +00:00
Florian Pose 9329e1727e Implemented Sdo dictionary info via 'ethercat sdos'. 2008-06-06 09:27:24 +00:00
Florian Pose fea56d5aa6 Added ec_slave_get_sdo_by_pos_const() and ec_slave_sdo_count(). 2008-06-06 09:22:57 +00:00
Florian Pose bd4d1a32b5 Added ec_sdo_get_entry_const(). 2008-06-06 09:22:19 +00:00
Florian Pose 40c94387d8 Renamed subindices to max_subindex. 2008-06-06 09:15:56 +00:00
Florian Pose 6869c62ad8 Fixed bug in data size check for sysfs reading of sdo entries. 2008-06-06 09:12:05 +00:00
Florian Pose f596768724 Request slave state(s) with 'ethercat state'; removed sysfs state file. 2008-06-06 08:12:34 +00:00
Florian Pose 825836dd77 Removed master info from sysfs. 2008-06-05 15:44:58 +00:00
Florian Pose eb850a6ec5 Replaced EC_IOCTL_SLAVE_COUNT with EC_IOCTL_MASTER; implemented
'ethercat master' command.
2008-06-05 15:39:15 +00:00
Florian Pose 7194a43da1 Implemented 'ethercat debug' command. 2008-06-05 14:33:36 +00:00
Florian Pose 4eaaf49f14 Removed static from device. 2008-06-05 12:38:07 +00:00
Florian Pose 4d5b2a41a8 'ethercat domain' shows domain contents and process data. 2008-06-04 13:17:15 +00:00
Florian Pose c74e50706b Implemented 'data' command. 2008-06-04 10:41:50 +00:00
Florian Pose ea384440f4 Implemented domain command. 2008-06-04 10:13:07 +00:00
Florian Pose e5f7d6f400 Introduced ec_master_domain_count() and ec_master_find_domain(). 2008-06-04 10:10:05 +00:00
Florian Pose 94bb141623 Working counter as uint16_t. 2008-06-04 08:43:08 +00:00
Florian Pose 879b6d0c8c Enable sync managers only if SII enable is set and size is greater zero. 2008-06-04 08:30:18 +00:00
Florian Pose d7faa4ccb2 Added debugging for ecrt_slave_config_reg_pdo_entry(). 2008-06-03 13:13:53 +00:00
Florian Pose f0b0b9a129 Check for matching data size when reading Sdo entries via sysfs. 2008-06-03 12:04:00 +00:00
Florian Pose b6cca218db Added 'xml' command to generate a slave description file from a real
slave.
2008-06-02 14:40:19 +00:00
Florian Pose fd77ad604d Added 'pdos' command to ethercat tool. 2008-06-02 10:51:31 +00:00
Florian Pose 12287e723e Added entry access functions. 2008-06-02 10:49:44 +00:00
Florian Pose 940e559c3d Separated Pdo and Pdo entry classes. 2008-06-02 10:21:20 +00:00
Florian Pose 9eccde6b9f Added ec_pdo_list_find_by_pos_const(). 2008-06-02 10:12:31 +00:00
Florian Pose 74c68a011a Added ec_pdo_list_count(). 2008-06-02 08:54:51 +00:00
Florian Pose 02079391de configs_attached = 0. 2008-05-30 14:50:57 +00:00
Florian Pose 93d32d5d84 Added debugging. 2008-05-30 14:31:02 +00:00
Florian Pose 02674c6f50 Removed deprecated ec_slave_validate(). 2008-05-30 10:49:51 +00:00
Florian Pose 8b8b470eaa Introduced ec_master_find_slave(). 2008-05-30 10:46:14 +00:00
Florian Pose 85e8f72c68 Output subindices with %02X. 2008-05-30 09:39:29 +00:00
Florian Pose e6f758b4de Some improvements concerning bit_position. 2008-05-30 08:56:47 +00:00
Richard Hacker 48c078359d Fixed missing right brace 2008-05-30 07:25:11 +00:00
Richard Hacker 8e0484b1c4 Changed Pdo entry registration function - return byte and bit positions 2008-05-30 07:11:27 +00:00
Florian Pose 3b4cae9626 Added the new ethercat comman-line tool with lsec functionality. 2008-05-29 15:11:26 +00:00
Florian Pose 9f0555ee26 Removed some xmldev survivors. 2008-05-29 09:53:10 +00:00
Florian Pose 0b464bbdb8 Removed xmldev. 2008-05-29 08:28:22 +00:00
Florian Pose bf2e1b9ee1 Added bitwise Pdo registration. 2008-05-28 07:26:28 +00:00
Florian Pose c8b67e13ee Improved working counter output; fixed problem with slaves that have a single sync manager used for outputs. 2008-05-13 16:07:06 +00:00
Florian Pose 24ac60fdcc Fetch Sdo dictionaries and process SII requests in operation mode. 2008-04-25 14:58:33 +00:00
Florian Pose 00d78d2566 Replaced self_configured flag with force_config flag. 2008-04-25 14:32:56 +00:00
Florian Pose ff5dd7fe1c Improved master state machine. 2008-04-25 14:07:38 +00:00
Florian Pose 0b9015848b Removed slave online flag. 2008-04-25 12:45:44 +00:00
Florian Pose ec02b717fa Renamed state sdodict to sdo_dictionary. 2008-04-25 12:23:52 +00:00
Florian Pose f28ee06308 Removed some debugging. 2008-04-25 12:18:46 +00:00
Florian Pose e8f2b80a61 Improved a few debugging outputs. 2008-04-25 12:16:56 +00:00
Florian Pose c294906bbf Moved setting of the allow flags. 2008-04-25 12:13:26 +00:00
Florian Pose 5742847dea Removed ec_master_prepare(). 2008-04-25 12:08:11 +00:00
Florian Pose 80c1bf823d Removed bus validation; slave configuration during realtime operation;
improved scan/config busy flags.
2008-04-25 12:04:23 +00:00
Florian Pose 5a852bc210 Check for emergency requests during CoE transfers. 2008-04-18 11:26:13 +00:00
Florian Pose e9ff403255 Exported ecrt_slave_config_sdo(); added documentation. 2008-04-16 08:33:04 +00:00
Florian Pose 791aa6d3d1 Added vim modelines and properties. 2008-04-08 11:52:51 +00:00
Florian Pose 6053cdedff Avoided duplicate datagram, if Pdo mapping/assignment does not have to
be configured.
2008-04-07 15:58:27 +00:00
Florian Pose 4e876edf62 Debug messaged on configuring assignment and mapping. 2008-04-07 15:47:22 +00:00
Florian Pose 42f0529b05 Moved configuration of Pdo mapping before Pdo assignment. 2008-04-07 15:12:43 +00:00
Florian Pose eeb80bb7b7 Moved Pdo sync manager configuration before Pdo assignment in slave
configuration state machine.
2008-04-07 13:57:41 +00:00
Florian Pose 5cbdbc6d4b Removed unused domain state. 2008-04-07 10:19:59 +00:00
Florian Pose 588cd7dab6 Fixed properties. 2008-04-03 15:50:46 +00:00
Florian Pose 1d70bd0145 Equalized defines against duplicated header inclusion. 2008-04-03 15:49:24 +00:00
Florian Pose 0a6b984c26 Added missing jiffies header. 2008-04-03 15:30:27 +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 059ef14ebe Fixed minor bug. 2008-03-19 10:51:18 +00:00
Florian Pose c543a04c51 Fixed general flags on big-endian archs. 2008-03-18 11:15:22 +00:00
Florian Pose 6286768f75 Fixed access to data pointers in Pdo config and Pdo mapping FSM's. 2008-03-18 10:49:30 +00:00
Florian Pose 486c66f43a Added CoE debugging. 2008-03-18 10:48:55 +00:00
Florian Pose f4199b7f60 Fixed bug in copying sync managers. Now making a deep copy. 2008-03-17 14:16:16 +00:00
Florian Pose f69b21af02 Renamed EEPROM to SII. 2008-03-17 09:38:48 +00:00
Florian Pose 77c29c0418 Added some const's. 2008-03-17 09:06:21 +00:00
Florian Pose dabaab4410 Allow multiple sync manager categories. 2008-03-17 09:05:13 +00:00
Florian Pose 257cc237b9 Added ecrt_sdo_request_data_size(). 2008-03-13 12:52:26 +00:00
Florian Pose 6af7a39cf3 Minor change. 2008-03-04 14:03:45 +00:00
Florian Pose 9b458ac5a6 Added doxygen markers. 2008-03-04 12:52:54 +00:00
Florian Pose 80fc8bff5d Minor changes. 2008-03-04 12:38:51 +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 a5e68a7f60 Minor change: Moved state assign to beginning. 2008-03-04 11:20:48 +00:00
Florian Pose 57094eaf48 Replaced ec_fsm_coe_\(upload\|download\)() with ec_fsm_coe_transfer();
reading and writing access possible.
2008-03-04 10:18:02 +00:00
Florian Pose e90dab2a4e Basic reading realtime Sdo access working. 2008-03-04 09:57:36 +00:00
Florian Pose a0068ca2d4 Improved error messages on EEPROM writing. 2008-03-04 08:52:39 +00:00
Florian Pose 5ea60febf9 Removed ec_sdodata_t; CoE state machines work on ec_sdo_request_t. 2008-03-03 16:22:39 +00:00
Florian Pose 17069bcb70 Fixed bug if scanning is not allowed when link goes up. 2008-03-03 16:17:23 +00:00
Florian Pose 42bed3090f Separated ec_sdo_request_init() and ec_sdo_request_read(). 2008-03-03 13:26:32 +00:00
Florian Pose 0b5b3b9e9b Removed slave pointer from ec_sdo_request_t class. 2008-02-29 16:20:12 +00:00
Florian Pose f621cf2619 Saparated ec_sdo_t, ec_sdo_entry_t and ec_sdo_request_t. 2008-02-29 12:19:48 +00:00
Florian Pose f8dfda2b19 Fixed 2 bugs in new Pdo mapping function. 2008-02-28 15:28:10 +00:00
Florian Pose 7338f88b5f Added some debugging and fixed a bug, when Pdo was not found. 2008-02-28 14:46:24 +00:00
Florian Pose ea501996b2 Added ecrt_slave_config_pdo() and ecrt_slave_config_pdo_entry(). 2008-02-28 14:29:50 +00:00
Florian Pose 338dbf2a27 Added documentation. 2008-02-28 14:18:37 +00:00