Removed obsolete ec_slave_sync_config().
authorFlorian Pose <fp@igh-essen.com>
Wed, 07 Mar 2007 13:56:00 +0000
changeset 631 789a72f887d0
parent 630 1b755b7342eb
child 632 0577f1ca7a99
Removed obsolete ec_slave_sync_config().
master/slave.c
--- a/master/slave.c	Wed Mar 07 13:29:29 2007 +0000
+++ b/master/slave.c	Wed Mar 07 13:56:00 2007 +0000
@@ -1123,35 +1123,6 @@
 /*****************************************************************************/
 
 /**
-   Initializes a sync manager configuration page with EEPROM data.
-   The referenced memory (\a data) must be at least EC_SYNC_SIZE bytes.
-*/
-
-void ec_slave_sync_config(const ec_slave_t *slave, /**< EtherCAT slave */
-        const ec_sync_t *sync, /**< sync manager */
-        uint8_t *data /**> configuration memory */
-        )
-{
-    size_t sync_size;
-
-    sync_size = ec_slave_calc_sync_size(slave, sync);
-
-    if (slave->master->debug_level) {
-        EC_DBG("Slave %3i, SM %i: Addr 0x%04X, Size %3i, Ctrl 0x%02X, En %i\n",
-               slave->ring_position, sync->index, sync->physical_start_address,
-               sync_size, sync->control_register, sync->enable);
-    }
-
-    EC_WRITE_U16(data,     sync->physical_start_address);
-    EC_WRITE_U16(data + 2, sync_size);
-    EC_WRITE_U8 (data + 4, sync->control_register);
-    EC_WRITE_U8 (data + 5, 0x00); // status byte (read only)
-    EC_WRITE_U16(data + 6, sync->enable ? 0x0001 : 0x0000); // enable
-}
-
-/*****************************************************************************/
-
-/**
    \return non-zero if slave is a bus coupler
 */