Removed deprecated ec_slave_validate().
authorFlorian Pose <fp@igh-essen.com>
Fri, 30 May 2008 10:49:51 +0000
changeset 928 7fbc0b943c65
parent 927 ffb7d1876ce0
child 929 64de138e6a54
Removed deprecated ec_slave_validate().
master/slave.c
master/slave.h
--- a/master/slave.c	Fri May 30 10:46:14 2008 +0000
+++ b/master/slave.c	Fri May 30 10:49:51 2008 +0000
@@ -1200,28 +1200,6 @@
 /*****************************************************************************/
 
 /**
-   \return 0 in case of success, else < 0
-*/
-
-int ec_slave_validate(const ec_slave_t *slave, /**< EtherCAT slave */
-                      uint32_t vendor_id, /**< vendor ID */
-                      uint32_t product_code /**< product code */
-                      )
-{
-    if (vendor_id != slave->sii.vendor_id ||
-        product_code != slave->sii.product_code) {
-        EC_ERR("Invalid slave type at position %u:\n", slave->ring_position);
-        EC_ERR("  Requested: 0x%08X 0x%08X\n", vendor_id, product_code);
-        EC_ERR("      Found: 0x%08X 0x%08X\n",
-                slave->sii.vendor_id, slave->sii.product_code);
-        return -1;
-    }
-    return 0;
-}
-
-/*****************************************************************************/
-
-/**
    Counts the total number of Sdos and entries in the dictionary.
 */
 
--- a/master/slave.h	Fri May 30 10:46:14 2008 +0000
+++ b/master/slave.h	Fri May 30 10:49:51 2008 +0000
@@ -220,7 +220,6 @@
 
 // misc.
 ec_sync_t *ec_slave_get_pdo_sync(ec_slave_t *, ec_direction_t); 
-int ec_slave_validate(const ec_slave_t *, uint32_t, uint32_t);
 void ec_slave_sdo_dict_info(const ec_slave_t *,
         unsigned int *, unsigned int *);
 ec_sdo_t *ec_slave_get_sdo(ec_slave_t *, uint16_t);