Removed ugly ec_slave_has_subbus() function.
This commit is contained in:
parent
b4bfda2e62
commit
e3afb9e9fb
2
TODO
2
TODO
|
|
@ -10,7 +10,7 @@ $Id$
|
|||
- Remove ecrt_master_run(). Make master FSM run in process context instead.
|
||||
- Remove addressing scheme "X:Y".
|
||||
- Allow only MAC address as device ID.
|
||||
- Remove ugly ec_slave_is_coupler() and ec_slave_has_subbus().
|
||||
- Remove ugly ec_slave_is_coupler().
|
||||
|
||||
* Future features:
|
||||
- SDO dictionary and -access in operation mode.
|
||||
|
|
|
|||
|
|
@ -1193,18 +1193,6 @@ int ec_slave_is_coupler(const ec_slave_t *slave /**< EtherCAT slave */)
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
\return non-zero if slave is a bus coupler
|
||||
*/
|
||||
|
||||
int ec_slave_has_subbus(const ec_slave_t *slave /**< EtherCAT slave */)
|
||||
{
|
||||
return slave->sii_vendor_id == 0x00000002
|
||||
&& slave->sii_product_code == 0x04602c22;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
\return 0 in case of success, else < 0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -291,7 +291,6 @@ void ec_slave_fmmu_config(const ec_slave_t *, const ec_fmmu_t *, uint8_t *);
|
|||
uint16_t ec_slave_calc_sync_size(const ec_slave_t *, const ec_sii_sync_t *);
|
||||
|
||||
int ec_slave_is_coupler(const ec_slave_t *);
|
||||
int ec_slave_has_subbus(const ec_slave_t *);
|
||||
|
||||
int ec_slave_validate(const ec_slave_t *, uint32_t, uint32_t);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue