Commit Graph

1173 Commits

Author SHA1 Message Date
Florian Pose ebf9c296f3 Added ecrt_slave_config_reg_so_entry_pos() to register non-unique entries. 2013-02-05 16:45:34 +01:00
Florian Pose 23c725a79c Exported ecrt_domain_size() for userspace. 2013-02-05 15:24:45 +01:00
Florian Pose 0af9fa3036 FoE datagram / fsm->datagram bugfix, thanks to R. Roesch. 2013-02-05 14:58:00 +01:00
Florian Pose 994cb9a15d Fixed FoE data opcode, thanks to R. Roesch. 2013-02-05 14:10:46 +01:00
Florian Pose 032acb3d85 Avoided io_sem locking from userspace/rtdm library. 2013-01-10 17:36:41 +01:00
Florian Pose 236f4e4c96 Made datagram const. 2012-12-07 19:51:55 +01:00
Florian Pose 8a6eadb16b Fixed some warnings on 64 bit systems. 2012-12-06 18:43:56 +01:00
Florian Pose 465cfd37e3 Removed unused variable. 2012-12-06 18:13:02 +01:00
Florian Pose 623c91c545 Fixed io_sem usage in queue_external_datagrams(). 2012-12-06 18:11:11 +01:00
Florian Pose a57e0f98cf Removed unnecessary semaphore uses for emergency requests. 2012-12-06 17:54:23 +01:00
Florian Pose 55679c0526 Added vmalloc() include fix for ARM architecture, thanks to Andrea Scian. 2012-12-06 15:53:21 +01:00
Florian Pose c0adb9cbfd Do not use slaves's SoE state machine for configuration. 2012-12-06 14:06:10 +01:00
Florian Pose a043fea98e Added function attribute definition. 2012-12-06 14:04:40 +01:00
Florian Pose c1fdfbe289 Fixed some ioctl() permissions. 2012-12-06 11:24:04 +01:00
Florian Pose 43202f7e32 Send sync datagrams only if reference clock is found. 2012-12-05 15:54:49 +01:00
Florian Pose 4750f20558 Minor DC debugging. 2012-12-05 14:55:32 +01:00
Florian Pose 5a40362ee4 Fixed some ioctl() return values. 2012-12-05 13:30:08 +01:00
Florian Pose 86b332cafc Fixed ecrt_domain_process() broken in 71d38ff288b3. 2012-12-05 11:32:45 +01:00
Florian Pose 65df8b3a17 Minor change. 2012-12-05 10:22:43 +01:00
Florian Pose 5f73e9c046 Using common waitqueue for requests. 2012-12-04 16:05:23 +01:00
Florian Pose 72b60d1c07 Removed unnecessary ec_master_soe_request_t type. 2012-12-04 14:49:23 +01:00
Florian Pose 1b945a670c Removed unnecessary ec_master_foe_request_t; fixed FoE access. 2012-12-04 14:26:30 +01:00
Florian Pose e466f69c37 Improved preprocessor macro usage reg. redundancy. 2012-12-04 14:24:01 +01:00
Florian Pose b5373b36d4 Removed unnecessary loop when dequeuing register requests. 2012-12-04 14:09:49 +01:00
Florian Pose de0ce09db9 Removed unnecessary ec_master_sdo_request_t. 2012-12-04 13:28:38 +01:00
Florian Pose 6863b34ff1 Minor: Renamed slave_sdo_requests. 2012-12-04 12:59:15 +01:00
Florian Pose 0456ad0de8 Invalidate processing register requests when clearing configuration. 2012-12-04 12:23:43 +01:00
Florian Pose 1322a3b6a8 Removed unused method. 2012-12-04 12:22:38 +01:00
Florian Pose cf327f63c8 Mark processing SDO request as invalid if config is cleared. 2012-12-04 12:09:42 +01:00
Florian Pose e59b790583 Reset master state machine when going to orphaned phase. 2012-12-04 11:57:55 +01:00
Florian Pose 879a17fa56 Minor changes. 2012-12-04 11:54:13 +01:00
Florian Pose d28370edd5 merge 2012-11-30 20:25:18 +01:00
Florian Pose 3cb0b12899 Added configure option for redundancy (--with-devices). 2012-11-30 20:15:31 +01:00
Florian Pose 7b0b85b506 Improved device member initialisation. 2012-11-30 12:11:28 +01:00
Florian Pose b5ede6f0f2 Removed unused field. 2012-11-30 12:09:12 +01:00
Florian Pose 7b435e5e84 Changed the datatypes of the shift times in ecrt_slave_config_dc()
to int32_t to correctly display negative shift times.
2012-11-29 10:15:40 +01:00
Florian Pose 075ac4aee8 Adjusted DC clock discipline parameters. 2012-11-20 14:53:36 +01:00
Florian Pose becf05dbd6 Added interface to select the reference clock and to sync to it.
Added rtai_rtdm_dc example, thanks to Graeme Foot.
2012-11-20 14:35:53 +01:00
Florian Pose 4773e88bf6 Added interface to read/write register contents; re-worked register requests. 2012-11-14 22:12:57 +01:00
Florian Pose 139168474d Immediately restart slave FSM on several failed requests. 2012-11-14 22:08:32 +01:00
Florian Pose 88b99dcd07 Removed state-dependent skip messages. 2012-11-14 22:00:11 +01:00
Florian Pose c79e2cfe98 Output slave FSM datagram statistics. 2012-11-14 21:59:34 +01:00
Florian Pose cd415846d5 Added API for querying CoE emergency requests. 2012-11-06 14:23:44 +01:00
Florian Pose 77d12c25ca Show complete access flag in config view. 2012-10-09 09:52:50 +02:00
Florian Pose ef68a4bff1 Added ecrt_sdo_request_index() method to change index and subindex. 2012-10-04 10:07:52 +02:00
Florian Pose 9faaa83212 Re-worked and seamlessly integrated RTDM interface. 2012-09-20 15:28:25 +02:00
Florian Pose b0b7e6fde4 Removed trailing spaces. 2012-09-06 20:22:24 +02:00
Florian Pose 1c8790c483 Merged redundancy branch to stable-1.5. 2012-09-06 18:28:57 +02:00
Florian Pose 66293cbefa Malformed hg keywords. 2012-09-04 14:18:20 +02:00
Florian Pose 83e097bade Fixed AL status code lookup. 2012-08-06 14:18:05 +02:00
Florian Pose dbc993a98b Added missing linux/modules.h include. 2012-07-23 16:10:45 +02:00
Florian Pose d2c2e3a5a9 Removed whitespace. 2012-07-09 10:05:32 +02:00
Florian Pose 6c9e725c29 Added ecrt_master_link_state() to retrieve information about a redundant link. 2012-05-31 11:03:58 +02:00
Florian Pose dee3c96444 Minor: Braces. 2012-05-31 09:50:29 +02:00
Florian Pose 4c3c5c2778 Slave scanning and configuration on all links. 2012-04-06 23:35:05 +02:00
Florian Pose f30e8a0572 Improved/fixed frame statistics (low-pass filters). 2012-03-19 10:43:09 +01:00
Florian Pose e960e20bb3 Fixed frame loss statistics. 2012-03-19 09:56:36 +01:00
Florian Pose 8b19812c17 Fixed sending on backup link if main link is down. 2012-03-17 09:06:58 +01:00
Florian Pose e1c59c7c96 Partial WC output in domains command. 2012-03-16 18:44:59 +01:00
Florian Pose d3e9618f51 Loop through datagrams, then FMMUs; redundancy flag in domain state. 2012-03-16 18:24:29 +01:00
Florian Pose a304442ebc Compare with send buffer; copy changed data. 2012-03-16 16:04:26 +01:00
Florian Pose 39b918ed71 Added fix for ESC port order (DC delay calculation). 2012-01-30 15:17:34 +01:00
Florian Pose d88ab15d42 Fixed reset of allow_scanning flag if ecrt_master_activate() was not called. 2012-01-13 11:27:20 +01:00
Florian Pose 6edb7e55f6 Allocated ioctl data structures dynamically to avoid stack warnings. 2012-01-10 11:30:41 +01:00
Florian Pose 680d944ccd Decreased maximum length of error message to avoid stack warning. 2012-01-10 11:30:03 +01:00
Florian Pose 543a18d9bb Fixed semaphore header for kernels < 2.6.27. 2012-01-10 10:43:36 +01:00
Florian Pose a7b3698d7d Copy missing slave_info data in kernel space. 2012-01-10 10:11:20 +01:00
Florian Pose e47f14fd77 Avoided casting-away constness in expected working counter calculation. 2011-08-11 19:43:48 +02:00
Florian Pose d0bd89882b Replaced i with dev_idx. 2012-03-15 14:23:16 +01:00
Florian Pose b54aefc56a Added fix for ESC port order (DC delay calculation). 2012-01-30 15:17:34 +01:00
Florian Pose 70f91bf0d4 Fixed reset of allow_scanning flag if ecrt_master_activate() was not called. 2012-01-13 11:27:20 +01:00
Florian Pose 84de8d1928 Allocated ioctl data structures dynamically to avoid stack warnings. 2012-01-10 11:30:41 +01:00
Florian Pose dd7e81ad27 Decreased maximum length of error message to avoid stack warning. 2012-01-10 11:30:03 +01:00
Florian Pose f4623c86fd Fixed semaphore header for kernels < 2.6.27. 2012-01-10 10:43:36 +01:00
Florian Pose 94a4f01ba5 Copy missing slave_info data in kernel space. 2012-01-10 10:11:20 +01:00
Stefan Weiser 8cb225b61d Insert port information into slave info. 2010-04-30 10:53:56 +02:00
Florian Pose 929df897b5 Avoided unused variable warnings. 2012-01-09 17:42:28 +01:00
Florian Pose 0be8352c54 Allow gaps between SDO subindices when fetching dictionary. 2012-01-05 16:53:08 +01:00
Florian Pose 73de007970 Allow CoE OD List Segments to have 6 bytes instead of 8. 2012-01-05 16:47:23 +01:00
Florian Pose a1251dfed8 Removed some locks causing latency when using the library; added ioctl()
latency debugging; fixed FoE memory leaks in error case.
2011-12-20 11:12:04 +01:00
Florian Pose 6109aa9c98 merge 2011-12-16 16:31:40 +01:00
Florian Pose 76ea7a103c Removed unnecessary call of ec_master_inject_external_datagrams(). 2011-12-16 16:29:00 +01:00
Florian Pose d2b82936fb Minor: Fixed spacing. 2011-12-16 16:26:16 +01:00
Florian Pose c44723a347 Read AL status code before acknowledging spontaneous state change. 2011-12-16 11:42:55 +01:00
Florian Pose a37b4b292d Improved resetting number of responding slaves. 2011-12-09 10:35:23 +01:00
Florian Pose 4f1b5d4ae3 Minor: Ordered master member initialisations. 2011-12-09 10:46:25 +01:00
Florian Pose dc64d9c2a7 Minor. 2011-12-09 10:46:04 +01:00
Florian Pose c613a80715 Added --enable-wildcards to use 0xffffffff as wildcard for vendor ID and
product code.
2011-11-04 12:21:09 +01:00
Florian Pose 7555b87512 Added ecrt_master_sdo_download_complete() for ad-hoc downloading SDOs (also
via the command-line tool).
2011-10-24 10:49:27 +02:00
Florian Pose 0f875c88cf Always enable a sync manager, if there are registered PDOs conatined (and it
is not virtual)
2011-10-24 10:47:36 +02:00
Florian Pose c2f8bbb8f4 Fixed missing return causing slaves not going to OP. 2011-09-22 16:52:54 +02:00
Florian Pose 8000c89bcc Fixed typo. 2011-09-19 13:12:32 +02:00
Florian Pose 281c57130f Removed unnecessary list header. 2011-09-16 16:44:13 +02:00
Florian Pose a4adf60027 Removed allow_config flag and obsolete request to OP. 2011-09-16 14:10:23 +02:00
Florian Pose 197fe386b9 Don not copy frame data to datagram memory, if datagram type is write-only. 2011-09-16 12:44:54 +02:00
Florian Pose ad0e01da9e Bugfix: Reset config_changed flag when aborting state check. 2011-09-16 09:19:24 +02:00
Florian Pose bbe96b3246 Implemented ecrt_master_sdo_upload() and ecrt_master_sdo_download() also for
kernel space.
2011-09-15 16:33:13 +02:00
Florian Pose cca109cc6e No app_time is only warning. 2011-09-15 16:31:43 +02:00
Florian Pose 3981accaae Output app_time in DC debugging. 2011-09-15 12:38:48 +02:00
Florian Pose a877b8583c Improved DC sync at startup: Abort iterating though slaves and first correct
system time offsets, then begin configuring at slave 0.
2011-08-09 22:10:45 +02:00