Commit Graph

218 Commits

Author SHA1 Message Date
Florian Pose 0ffba7a923 Simplified handling of EEPROM strings. 2007-03-07 11:11:17 +00:00
Florian Pose 924ebcd8c6 Renamed SII fetching functions (non-functional). 2007-03-06 10:37:56 +00:00
Florian Pose 71f2050fa4 Introduced ec_slave_get_pdo_sync(). 2007-03-06 09:15:12 +00:00
Florian Pose b75973f27f SII sync managers as array instead of list, removed sync manager
guessing, ignoring base_sync_count.
2007-03-06 09:06:01 +00:00
Florian Pose e3afb9e9fb Removed ugly ec_slave_has_subbus() function. 2007-03-05 11:34:52 +00:00
Florian Pose b4bfda2e62 Introduced master status, ecrt_master_get_status(), tainted flag,
pdos_registered flags and pdo_slaves_offline counter.
2007-03-05 10:35:50 +00:00
Florian Pose b0285d88a9 Introduced ec_slave_online_state_t, ec_slave_set_online_state(), renamed
slave->online to ec_online_state and introduced
ec_slave_set_app_state().
2007-03-05 09:55:39 +00:00
Florian Pose 62e1adca17 Moved state request on PDO registration to slave.c. 2007-03-05 09:10:02 +00:00
Florian Pose d8d30c4a1f Implemented alias reading/writing via sysfs. 2007-03-02 15:43:45 +00:00
Florian Pose 94866f4bca Minor changes in EEPROM write code. 2007-03-02 14:47:09 +00:00
Florian Pose 65572b43d7 Fixed signal issue in EEPROM writing code. 2007-03-02 14:35:49 +00:00
Florian Pose 2ec4d25fce Introduced EEPROM write requests: EEPROM write operations from user
space are now queued and block until completion. Also, appropriate error
codes are returned.
2007-03-01 21:34:10 +00:00
Florian Pose 04056ce182 ec_slave_write_eeprom now returns certain error codes. 2007-03-01 15:03:08 +00:00
Florian Pose 9afbed92d2 Removed eeprom_write_enable file. 2007-03-01 14:50:53 +00:00
Florian Pose e3412a4c2f Completely removed ecrt_slave_pdo_size() code. 2007-02-28 09:22:03 +00:00
Florian Pose e643409867 Made ec_sync_config() and ec_fmmu_config() to methods of ec_slave_t. 2007-02-13 11:48:46 +00:00
Florian Pose 16684ccffd Minor changes to slave.c 2007-01-10 10:51:43 +00:00
Florian Pose 9ff5f1348b Re-added slave.configured flag as slave.self_configured. 2007-01-09 14:36:08 +00:00
Florian Pose ec252a2df6 Removed slave.configured flag. 2007-01-09 13:57:34 +00:00
Florian Pose 5d927adad9 Display requested state in slave info. 2007-01-09 13:42:38 +00:00
Florian Pose b00258a4d8 Current consumption in sysfs; "lsec -c" shows current consumption and remaining current. 2006-12-08 11:52:33 +00:00
Florian Pose e3b241a79a kobject_add() in constructors. 2006-11-06 14:22:35 +00:00
Florian Pose 286825d02a Added clear function for SDO kobject. 2006-11-06 14:19:03 +00:00
Florian Pose 9c59a83aca Remove estimated sync manager sizes when leaving operation mode. 2006-10-30 15:39:03 +00:00
Florian Pose d301450949 BUGFIX: Remove SDO configurations when leaving OPERATION mode. 2006-10-27 15:04:12 +00:00
Florian Pose 4b9ee9b959 SDO configurations in Sysfs. 2006-10-27 15:01:32 +00:00
Florian Pose 1f44556083 Print certain warnings only at debug_level. 2006-10-27 13:59:49 +00:00
Florian Pose 7a114fdb9d Added slave flags to Sysfs. 2006-10-27 13:20:16 +00:00
Florian Pose 131589f534 FIX: Introduced destroy() functions for kobject-derived classes and thus fixed memory leak. 2006-10-27 09:19:58 +00:00
Florian Pose b6e88ad403 Persistent slave lists. 2006-10-26 16:29:26 +00:00
Florian Pose cd884f45d0 Better debugging output for SDO dictionaries. 2006-10-20 12:33:48 +00:00
Florian Pose c800b84949 Reconfiguration of slaves, though they are in the correct state at startup. 2006-10-20 10:48:30 +00:00
Florian Pose e33b75b2b5 Moved SDO dictionary fetching to master FSMs; added SDO parent kobj. 2006-10-19 14:23:24 +00:00
Florian Pose 7642448f62 Fixed memory leak in master and slave destructors. 2006-10-19 14:05:56 +00:00
Florian Pose 5d90e96f72 ecrt_domain_register_pdo_range() implemented. 2006-10-18 13:11:48 +00:00
Florian Pose dafb6721a3 Added FMMU debugging. 2006-10-18 11:50:31 +00:00
Florian Pose 41a6b5bfee Added ec_slave_validate() 2006-10-18 08:59:53 +00:00
Florian Pose 25964ccc9a Implemented fetching of SDO dictionary. 2006-10-17 14:50:04 +00:00
Florian Pose 9c7dd75ed9 Removed clear functions from headers of kobject-classes. 2006-10-17 14:19:59 +00:00
Florian Pose 3dc90146fd Added EC_SLAVE_STATE_ACK_ERR to ec_state_string(); added EC_STATE_STRING_SIZE 2006-10-17 14:15:48 +00:00
Florian Pose 1c3ada4e59 Corrected subbus product code. 2006-10-17 07:27:05 +00:00
Florian Pose e0a3174a9b Removed varsized_fields 2006-10-17 07:25:13 +00:00
Florian Pose 0c02680146 Added ec_slave_has_subbus() 2006-10-13 09:45:22 +00:00
Florian Pose 46b98fdbb1 Coupler information in slave info file, lines in lsec. 2006-09-11 08:52:41 +00:00
Florian Pose c30ed6a8c1 Removed unused code. 2006-08-15 09:36:56 +00:00
Florian Pose 7aa7a95c2e Added missing code documentation. 2006-08-09 15:00:20 +00:00
Florian Pose aaea721316 Minor changes. 2006-08-08 12:07:25 +00:00
Florian Pose a02e21fbfc Minor fix: Output of SysFS accepting new slave state. 2006-08-04 09:35:32 +00:00
Florian Pose 32d3bc8d0f SDO configuration interface, SDO download state machine. 2006-08-03 16:48:53 +00:00
Florian Pose 258b4d998d VERSION 1.1: New realtime interface, only state machines. 2006-08-03 12:51:17 +00:00
Florian Pose 7440891396 Fixed bug with bit-sized PDOs leading to wrong Sync-Manager sizes. 2006-08-01 14:15:33 +00:00
Florian Pose 7cd6be268e Renamed Sysfs attributes. 2006-07-25 10:05:04 +00:00
Florian Pose af1e1bf033 Renamed FREERUN mode to IDLE mode. 2006-07-19 13:15:02 +00:00
Florian Pose 71d7a89468 Ack timeout 100ns in simple IO. 2006-07-18 16:46:26 +00:00
Florian Pose 0d76e9719b Prefer EEPROM sync manager information for config. 2006-07-17 13:01:38 +00:00
Florian Pose 96cb13803c Avoided crashes on kernel 2.4 acc. to patch by M. Schwerin. 2006-07-06 08:39:48 +00:00
Florian Pose 6fdf205382 Renamed command structure to datagram. 2006-07-06 08:23:24 +00:00
Florian Pose 4a72709aa1 Minor changes in fsm.c and slave.c 2006-06-27 20:24:32 +00:00
Florian Pose 682c27d1d8 Slave: state_error -> error_flag, error_flag only in slave state machine. 2006-06-27 20:08:15 +00:00
Florian Pose a5eb823057 Introducing infrastructural slaves that do not contain process data. 2006-06-27 19:46:25 +00:00
Florian Pose dba003179f Removed mbox_command out of slave. 2006-06-21 10:09:36 +00:00
Florian Pose 85bd5d131d Variable-sized data fields, BK1120. 2006-06-20 14:40:04 +00:00
Florian Pose 51af5bb52f EEPROM writing via SysFS. 2006-06-02 14:25:45 +00:00
Florian Pose 429c0b26cb Read complete eeprom data from slave and map it into SysFS. 2006-06-02 08:38:04 +00:00
Florian Pose b0c8f6d50f Changed EEPROM string/property names and changed sii_desc property to sii_name. 2006-05-29 07:48:33 +00:00
Florian Pose 7b3672d62b Correct behaviour of master state machine in RT mode. 2006-05-26 14:26:57 +00:00
Florian Pose 6e392ae881 SysFS write access for slave state. 2006-05-22 07:34:58 +00:00
Florian Pose 4ea2816432 EoE in Free-Run mode; Finished slave configuration state machine. 2006-05-19 13:23:11 +00:00
Florian Pose 2916e10b50 Changed license headers and added EtherCAT license notice. 2006-05-18 12:35:47 +00:00
Florian Pose 13c2904e0b Added finite state machine (FSM) processing. 2006-05-16 11:57:06 +00:00
Florian Pose 42fca68ae7 Doxygen added interface modules and file documentation. 2006-04-24 10:10:02 +00:00
Florian Pose b3389cee9f GPLv2 License and enhanced Doxygen output. 2006-04-21 12:35:17 +00:00
Florian Pose 91c739da77 Translated all comments and documentation to english language. 2006-04-20 13:31:31 +00:00
Florian Pose be21ebac29 Now fetching port physical layer from EEPROM 2006-04-11 14:39:17 +00:00
Florian Pose ad6b1732d6 Better calc. of coupler address; coupler address in SysFS; better output of ec_list 2006-04-11 14:12:01 +00:00
Florian Pose 4d86dd4cfe Slave (special) type in SysFS 2006-04-11 12:51:20 +00:00
Florian Pose 52a37f1e08 Macro for SysFS attribute definition 2006-04-11 10:17:30 +00:00
Florian Pose c225959b1c More slave fields in SysFS; DL link status for 4 ports 2006-04-11 10:05:21 +00:00
Florian Pose 849e02da7c Slaves stored in list, slaves in SysFS 2006-04-11 09:12:00 +00:00
Florian Pose 02493380b0 Altered CoE "Get object description response" fields 2006-04-10 10:50:45 +00:00
Florian Pose 03ae7f543b AL status code reading after failed state transition. 2006-04-05 14:02:56 +00:00
Florian Pose d3ecd483fa Fixed state acknowledgement. 2006-04-05 13:57:01 +00:00
Florian Pose 44c00c852d Bugfix: Discovered memory leak. 2006-04-05 11:46:13 +00:00
Florian Pose 780ae5af5d Renamed slave_set_fmmu() to slave_prepare_fmmu(). 2006-04-05 11:44:41 +00:00
Florian Pose 2549224604 Bugfix: Crash after failing to fetch SDO dictionary. 2006-04-05 09:50:57 +00:00
Florian Pose 7bd5f4dfb5 Plugfest: Configure mailbox for unknown slaves. 2006-04-05 08:58:00 +00:00
Florian Pose 294639b752 Ausgaben verbessert, Mini-Modul angepasst. 2006-04-03 19:13:11 +00:00
Florian Pose 4b4092fd7e Mailbox-Interface ausgelagert, erster EOE-Ansatz. 2006-04-03 14:12:45 +00:00
Florian Pose 8306f3e3c1 Dynamischer Kommandospeicher, Domain-Kommandos als Liste. 2006-04-03 10:03:34 +00:00
Florian Pose 819ab0ad9a Link Status ausgelesen. 2006-03-31 09:27:34 +00:00
Florian Pose d919deed4b Verbosity level in ecrt_master_print(). 2006-03-29 15:23:10 +00:00
Florian Pose 0bea90e379 Laden der SDO-Subindizes. 2006-03-29 15:10:00 +00:00
Florian Pose 5722b4bc9a SDO-Schnittstelle verbessert. 2006-03-29 10:30:13 +00:00
Florian Pose 3b8f2472a5 Dynamische Mailbox-Kommunikation, auch mit unbekannten Slaves. 2006-03-28 15:45:19 +00:00
Florian Pose 1e150e4553 Laden der SDO Dictionaries funktioniert. 2006-03-28 13:42:50 +00:00
Florian Pose 9ae1bdf63e Unterstützte Prot. auslesen, Mailbox in Slave ausgelagert, Bugfix in Anzeige des Watch-Frames und erste SDO-List-Abfrage. 2006-03-27 15:52:08 +00:00
Florian Pose 43f05519d6 CRC-Counter nach ESC-Datasheet implementiert. 2006-03-27 12:04:55 +00:00
Florian Pose bc02897af2 Code aufgeräumt und kleines Speicherleck entdeckt. 2006-03-24 08:35:46 +00:00
Florian Pose 2c69194a1a Restliche EEPROM-Daten ausgelesen. 2006-03-22 11:42:44 +00:00
Florian Pose 7b95ac4e32 Nachmals verfälschte Umlaute korrigiert. 2006-03-21 18:28:16 +00:00
Florian Pose ca1ed1e29c Weitere EEPROM-Daten. 2006-03-21 15:45:11 +00:00
Florian Pose 6d4fc835e1 "kaputte" Umlaute korrigiert. 2006-03-21 15:10:18 +00:00
Florian Pose 5483f50edf Bugfix: Absturz behoben, EEPROM-Infos. 2006-03-21 15:00:50 +00:00
Florian Pose 58d3c00f3d Verschiedene Timeouts verlängert. 2006-03-21 14:23:23 +00:00
Florian Pose f9c4eecee9 Kategorie-Daten aus EEPROM lesen. 2006-03-21 13:57:15 +00:00
Florian Pose e6ac6a1900 Slave alias implementiert. 2006-03-20 15:28:25 +00:00
Florian Pose 290d5d86a4 Do-Schleifen ersetzt. 2006-03-20 13:36:10 +00:00
Florian Pose 1c0347347a MERGE branches/async -> trunk (alle Unterschiede übernommen) 2006-03-17 14:21:35 +00:00
Florian Pose 38f5bccbca MERGE branches/async -r243:244 -> trunk (intypes). 2006-03-08 13:23:56 +00:00
Florian Pose b38ffbe720 MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen). 2006-03-06 15:12:34 +00:00
Florian Pose 42f8695d18 Code-Dokumentation angepasst. 2006-02-28 11:10:57 +00:00
Florian Pose 324ce91d67 Wiederholtes Senden, wenn keine Antwort. 2006-02-28 09:09:08 +00:00
Florian Pose 48ed6bda64 printk durch Makros ersetzt. 2006-02-24 16:10:52 +00:00
Florian Pose f99f9b3e23 EC_READ/WRITE-Makros verwenden Makros aud asm/byteorder.h und werden konsequent verwendet. 2006-02-24 10:19:26 +00:00
Florian Pose b49d9be301 Neues Slave-Interface, CRC-Prüfung und mehrfaches Scannen nun ungefährlich. 2006-02-23 13:38:54 +00:00
Florian Pose 4d65b22b0f Dynamische FMMU-Konfiguration, zwei Kopieroperationen eingespart, Einrückungen angepasst. 2006-02-23 09:58:50 +00:00
Florian Pose 5fb6877412 Mit neuer Schnittstelle wieder lauffähig. 2006-01-20 13:32:31 +00:00
Florian Pose b0443360ec Vereinheitlichte Schnittstellen, Include-Verzeichnis und Module getrennt. 2006-01-17 18:28:15 +00:00