Commit Graph

639 Commits

Author SHA1 Message Date
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
Florian Pose 267a4ddaa2 Added documentation. 2008-02-28 14:18:18 +00:00
Florian Pose 6b62545584 Renamed ec_pdo_mapping_find_pdo() to ec_pdo_mapping_find_pdo_const(). 2008-02-28 13:41:02 +00:00
Florian Pose e3be6cf8be Renamed ec_pdo_mapping_add_pdo() to ec_pdo_mapping_add_pdo_copy(). 2008-02-28 11:23:34 +00:00
Florian Pose c26c91c4a0 Display notLRW flag. 2008-02-28 11:06:14 +00:00
Florian Pose 95e6dc8d2b Evaluate CoE details from general category; moved current consumption
into general category info.
2008-02-28 10:58:43 +00:00
Florian Pose a4095b4201 Separated SII data from slave. 2008-02-27 15:24:00 +00:00
Florian Pose 397b5bf0cc Reading of Pdo mapping via CoE during scan. 2008-02-26 16:58:20 +00:00
Florian Pose 5e22bcec73 Separated slave state machines. 2008-02-26 13:20:32 +00:00
Florian Pose 3309784438 Fixed bug in Pdo mapping. 2008-02-22 18:41:24 +00:00
Florian Pose 508bb9d91e Minor changes. 2008-02-22 18:40:41 +00:00
Florian Pose 7341a1973c CoE state machines raising error, if the slave does not support CoE. 2008-02-22 18:25:44 +00:00
Florian Pose d4ccd3a2b6 Minor change. 2008-02-22 18:22:05 +00:00
Florian Pose 52e1a21be2 Check for FMMU limits. 2008-02-22 18:11:18 +00:00
Florian Pose 4d6ae02275 Fixed missing slave_error flag. 2008-02-22 18:07:47 +00:00
Florian Pose 06705a51cb Fixed warning about missing sync managers during Pdo mapping. 2008-02-22 17:49:28 +00:00
Florian Pose b4322990e2 Calculate expected working counter for domains. 2008-02-22 17:23:05 +00:00
Florian Pose 49baa165af Support for slaves that don't support the LRW datagram type. 2008-02-22 16:04:23 +00:00
Florian Pose 1bb9697a15 Introduced ec_datagram_type_string(). 2008-02-22 16:03:08 +00:00
Florian Pose 39f4da4d4f Implemented missing datagram types. 2008-02-22 15:35:39 +00:00
Florian Pose 350c159a9d Renamed [PS]DO to [PS]do. 2008-02-22 12:29:30 +00:00
Florian Pose 0921c356a1 Fixed typo SAVEOP -> SAFEOP. 2008-02-22 11:33:49 +00:00
Florian Pose 7db358b508 External domain memory. 2008-02-21 15:49:02 +00:00
Florian Pose 69f702dc92 Fixed Pdo mapping bug. 2008-02-21 12:43:55 +00:00
Florian Pose 873e517741 Moved ecrt_domain_reg_pdo_entry() to
ecrt_slave_config_reg_pdo_entry().
2008-02-21 09:50:54 +00:00
Florian Pose 8e6efae673 Renamed master module parameters, re-formatted code documentation. 2008-02-21 09:24:56 +00:00
Florian Pose 2d0c48dbce Renamed ec_fsm_mapping_t to ec_fsm_pdo_mapping_t. 2008-02-19 16:18:01 +00:00
Florian Pose 5f62803760 Cleaned up Pdo mapping and configuration state machines. 2008-02-19 16:09:58 +00:00
Florian Pose 6be227879d Minor changes. 2008-02-19 16:03:04 +00:00
Florian Pose ea7aa51ed1 Pdo configuration. 2008-02-19 14:06:50 +00:00
Florian Pose 940ab3299c Output AL status code zero. 2008-02-19 14:05:59 +00:00
Florian Pose bd1a70ada6 Minor change. 2008-02-19 14:05:26 +00:00
Florian Pose 375b7a033a Minor changes. 2008-02-19 10:58:08 +00:00
Florian Pose 096a5cd2ce Renamed a few configuration states. 2008-02-19 10:33:26 +00:00
Florian Pose 3a50cd0ff1 Allow bus configuration when link is down. 2008-02-19 09:58:48 +00:00
Florian Pose b955b2d529 Fixed Pdo configuration information providing. 2008-02-19 09:21:13 +00:00
Florian Pose 6189092aed Implemented most realtime interface changes for version 1.4, improved
ec_pdo_t and ec_pdo_entry_t classes, added fmmu_config_t, adjusted
minimal example, etc...
2008-02-19 08:22:20 +00:00
Florian Pose a1ce00effe Fixed typo. 2008-02-14 09:18:55 +00:00
Florian Pose d1d596e64a Updated doxygen docs. 2008-02-01 22:01:59 +00:00
Florian Pose 7c267ee50b Esthetic surgery for slave. 2008-02-01 21:22:22 +00:00
Florian Pose 52e374dd95 Esthetic surgery for domain. 2008-02-01 20:58:57 +00:00
Florian Pose dee00c2095 Small improvement of PDO offset calculation. 2008-02-01 20:44:43 +00:00
Florian Pose ad736d21ca Increased maximum number of EEPROM words from 512 to 1024. 2008-01-08 16:20:02 +00:00
Florian Pose 47f79011a4 Detection of page exceeding slave information file. 2008-01-08 16:19:28 +00:00
Florian Pose aa1baf50a9 Cut off category data on exceeding eeprom size limit. 2008-01-08 15:18:30 +00:00
Florian Pose fac8cc4b73 Improved EoE debugging. 2007-12-21 16:12:30 +00:00
Florian Pose bcf3dfb1ca Fixed normal/expedited bug at CoE upload; more robust behaviour, when
fragments_left is set.
2007-12-18 16:56:52 +00:00
Florian Pose b8b3d9bdf7 Added missing svn properties. 2007-11-22 09:01:41 +00:00
Florian Pose 047bcb6489 Allow gaps in PDO mapping. 2007-11-22 08:40:03 +00:00
Florian Pose 0ef1a10a1f Ouput identity object indented in slave info file. 2007-10-05 08:13:16 +00:00
Florian Pose fbb18a0fab Minor output changes in slave info file. 2007-10-05 07:42:47 +00:00
Florian Pose c650941baf Re-ordered slave info file. 2007-10-04 08:38:05 +00:00
Florian Pose 10655b7db3 Store PDO mapping source in sync manager. 2007-10-04 08:09:41 +00:00
Florian Pose dfc4ea045f merge -r969:970 branches/stable-1.3 -> trunk (fsm_coe_map.[ch] to dist) 2007-10-03 09:19:01 +00:00
Florian Pose 608e64a788 Fixed source MAC address setting bug. 2007-10-02 08:35:01 +00:00
Florian Pose c5b3ade0c0 Updated Doxygen documentation. 2007-09-24 12:12:11 +00:00
Florian Pose 723a67e6f2 SII writing workaround for some slaves, that don't respond correctly;
improved SII code.
2007-09-24 08:56:50 +00:00
Florian Pose 59d245a367 Changed unit of ec_eeprom_write_request_t from word to byte. 2007-09-24 07:54:51 +00:00
Florian Pose 8f31083441 Renamed sii state functions. 2007-09-24 07:39:02 +00:00
Florian Pose aae22904d8 Minor changes. 2007-09-24 07:11:37 +00:00
Florian Pose 028bd21678 Minor: renamed [RT]XPDO to [RT]xPdo. 2007-09-20 13:05:38 +00:00
Florian Pose c5f6c6073f Only exchange sync manager PDOs, if they could completely be read in. 2007-09-20 12:58:35 +00:00
Florian Pose 91f7afa111 Added ec_sync_get_pdo_type(). 2007-09-20 12:57:28 +00:00
Florian Pose 70a945fd7c Minor comment change. 2007-09-20 12:33:58 +00:00
Florian Pose 8986c8b183 Minor: Again moved setting of alternate PDO mapping flag. 2007-09-20 10:15:21 +00:00
Florian Pose 289c68d727 Minor: Moved setting of alternate PDO mapping flag. 2007-09-20 10:05:37 +00:00
Florian Pose 937b457d3e Fixed detection of missing EEPROM category limiter. 2007-09-20 09:44:27 +00:00
Florian Pose 8ee649a8c6 Minor debugging output changes. 2007-09-20 09:43:59 +00:00
Florian Pose 27ebca0d9c Improved checking of EEPROM data while reading. 2007-09-20 09:12:27 +00:00
Florian Pose d7c42088c2 Read PDO mapping from SDO dictionary (working, not finished yet). 2007-09-19 17:44:28 +00:00
Florian Pose 2a9c3f1fd2 Added ec_slave_get_sdo() and ec_sdo_get_entry(). 2007-09-19 17:32:39 +00:00
Florian Pose 0fe3931b47 Removed 'sdo' field from ec_sdo_request_t; Exported
ec_sdo_request_\(init_read|clear\)().
2007-09-19 17:25:48 +00:00
Florian Pose eb6e709e57 Improved handling for spontaneous AL state changes. 2007-09-19 17:17:45 +00:00
Florian Pose 579c49521f Master takes mailbox sync manager configurations from EEPROM words
0x0018-0x001b, if no sync manager configurations are provided.
2007-09-19 11:52:58 +00:00
Florian Pose 0ef6a7360d Calculate checksum when writing EEPROM or alias address. 2007-09-19 09:37:01 +00:00
Florian Pose 3cdf084fdc Minor fix: Set eeprom_size to 0 on unsuccessful memory allocation. 2007-09-19 09:07:36 +00:00
Florian Pose 7be3b11fce Removed config.kbuild and replaced Kbuild files by Kbuild.in files. 2007-09-19 08:22:20 +00:00
Florian Pose 99fc363c4f Debug statement, if slave does not support mailboxing. 2007-09-18 14:19:21 +00:00
Florian Pose fde0c0977f Avoid warnings on some compilers. 2007-09-18 14:18:30 +00:00
Florian Pose 56949fa400 Allow EEPROM writing when slave has error flag set. 2007-09-18 14:17:49 +00:00
Florian Pose 2f2738ccd1 Send frame to debug-if and debug-ring only when transmitted
successfully.
2007-09-17 10:24:13 +00:00
Florian Pose 1c829731ed Improved EoE handling: Avoided skipping of datagrams and release lock
while processing.
2007-09-12 14:48:53 +00:00
Florian Pose 7369f5a5a2 Removed measure_bus_time(). 2007-09-12 14:07:28 +00:00
Florian Pose 7597e2795e Store skipped information in datagrams; name datagrams for statistics
output.
2007-09-12 14:06:35 +00:00
Florian Pose af076a36bc Clear station addresses with broadcast before setting them. 2007-09-12 13:20:29 +00:00
Florian Pose 08c67e8f2e Minor fix. 2007-09-12 13:12:38 +00:00
Florian Pose c4b87f7317 Added --enable-eoe conditional. 2007-09-12 13:10:15 +00:00
Florian Pose 0a99c21c72 Show bus status and PDO slaves status in master info file. 2007-09-12 12:30:48 +00:00
Florian Pose 5bcf9d740f Better handling of unexpected working counters; introduced
ec_datagram_print_wc_error().
2007-09-12 10:07:55 +00:00
Florian Pose fd2c20530e Create network interfaces for EoE devices with alias as eoeXaY. 2007-09-12 10:00:39 +00:00
Florian Pose 9590fc6e37 Fixed EtherCAT addressing problem on big-endian systems. The slaves
address is now a four-byte-array, that is filled with little-endian
(EtherCAT) values on datagram creation.
2007-09-06 09:28:38 +00:00
Florian Pose ce972fd4fc Broadcast MAC address accepts first device. 2007-08-10 15:04:06 +00:00
Florian Pose 808ad3e2f1 Added ecrt_master_get_slave_by_pos(). 2007-08-10 13:46:34 +00:00
Florian Pose 1c2ac14987 Limited EEPROM reading; added EC_FIRST_EEPROM_CATEGORY_HEADER define. 2007-08-10 13:35:11 +00:00
Florian Pose 0d16910def Switched to tx socket buffer ring to avoid race conditions when multiple
instances call ec_device_send() in short intervals.
2007-08-09 15:45:56 +00:00
Florian Pose 68e6dfc108 Implemented debug frame ring to output the last n frames for debugging
reasons.
2007-08-09 15:01:14 +00:00
Florian Pose f76d31ec92 Included datagram queuing in critical section in idle task; added some
debugging and comments.
2007-08-09 14:47:37 +00:00
Florian Pose cc0cee6757 Re-ordered criteria for datagram matching. 2007-08-09 14:40:29 +00:00
Florian Pose 7ddb6848d9 Removed checking for NULL slave pointer in EoE handler; added comments. 2007-08-09 14:38:18 +00:00
Florian Pose 20daa81763 Minor change. 2007-08-09 14:28:54 +00:00
Florian Pose 2ce79f1433 Changed names of debug interfaces. 2007-08-08 13:58:24 +00:00
Florian Pose 480d12021b Added debugging output for unmatched frames and those that timed out. 2007-08-07 13:33:57 +00:00
Florian Pose 2d6ec6ec99 Renamed EoE interfaces to eoe<MASTER>s<SLAVE>. 2007-08-07 13:33:21 +00:00
Florian Pose 47f04dac71 Fixed typo. 2007-08-07 13:22:37 +00:00
Florian Pose a5b9e7b556 Added --enable-dummy; renamed EC_DBG_IF to EC_DEBUG_IF, ENABLE_DEBUG_IF
conditional.
2007-08-07 07:54:51 +00:00
Florian Pose 731377fe79 Improved Makefiles. 2007-08-03 13:31:13 +00:00
Florian Pose e5fc419e45 Replaced ecdev_link_state() with ecdev_set_link(); added
ecdev_get_link().
2007-07-25 12:52:06 +00:00
Florian Pose c9c595f94e Introduced frames_timed_out flag to notice bus failure when link down is
not detected.
2007-05-03 14:29:21 +00:00
Florian Pose f5d3ec538a Completely lock master while an EoE cycle is executing. 2007-03-16 14:42:04 +00:00
Florian Pose 9466d51185 Dynamic creation of EoE handlers. 2007-03-16 14:00:12 +00:00
Florian Pose e17ebc9764 Configure alternative PDO mapping only on slaves that have PDO sync
managers.
2007-03-16 13:39:19 +00:00
Florian Pose 2a1920caaa Removed unecessary clearing of EoE handlers in master init function;
fixed possible bug on failing to initialize or add master kobject.
2007-03-16 11:23:08 +00:00
Florian Pose 8978eb88a6 Respected endianess in sysfs SDO output; Separate message, if data type
does not fit to bit length.
2007-03-16 11:04:50 +00:00
Florian Pose f5a7e78786 Slave configuration exclusively from master thread; removed
ec_master_sync_io(); introduced events in the master state machine;
locking of slave scanning and slave configuration through allow_scan
and allow_config flags.
2007-03-12 18:21:42 +00:00
Florian Pose 8b1ad52b23 Fixed missing semaphore initialization. 2007-03-12 16:40:23 +00:00
Florian Pose d813370220 Added scan time output. 2007-03-12 13:59:23 +00:00
Florian Pose b09000d770 Fixed skipped datagrams when not in FSM idle phase. 2007-03-12 13:59:06 +00:00
Florian Pose 571917dd1a Introduced idle flag in master state machine. 2007-03-12 12:11:43 +00:00
Florian Pose 467dfa260e Renamed names of enum type ec_request_state_t. 2007-03-12 11:02:05 +00:00
Florian Pose 594c3bb715 Made waiting for device semaphore uninterruptible. 2007-03-12 08:47:56 +00:00
Florian Pose 6ef75e4d45 Replaced master variable 'atomic_t available' by integer and used
semaphore in module.c instead.
2007-03-12 08:42:02 +00:00
Florian Pose 2907aebfdf Implemented SDO reading with wait queues. 2007-03-09 15:11:29 +00:00
Florian Pose 8c9fec5ce0 Renamed ec_eeprom_request_state_t enum to ec_request_state_t and made it
global.
2007-03-09 14:00:32 +00:00
Florian Pose b0c1fbaeb0 Removed X:Y addressing scheme, ec_slave_is_coupler(),
ec_master_calc_addressing(), coupler_index and coupler_subindex variables.
Adapted lsec script and examples.
2007-03-09 13:24:15 +00:00
Florian Pose 81524176a8 Correctted resetting topology_change_pending and tainted flags. 2007-03-09 13:16:12 +00:00
Florian Pose 70482be0ac Added parameters for vendor ID and product code to ecrt_get_slave(); PDO
registration functions now take a slave pointer as argument; changed
values for ec_bus_status_t.
2007-03-09 10:24:50 +00:00