Commit Graph

440 Commits

Author SHA1 Message Date
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