Always set DC reference clock to OP.

This commit is contained in:
Florian Pose 2009-05-06 15:06:46 +00:00
parent 24199ff2ec
commit ceec75bf50
2 changed files with 6 additions and 1 deletions

1
TODO
View File

@ -14,7 +14,6 @@ Version 1.5.0:
- Check 32/64 bit operations.
- Use vendor correction factors when calculating transmission delays.
- Skip setting system time offset when application detached.
- Always set reference clock to OP.
- Output DC configuration in 'ethercat config'.
- How to set the SYNC1 shift time?
- Do not output graph, if topology calculation failed.

View File

@ -555,6 +555,7 @@ int ec_master_enter_operation_phase(ec_master_t *master /**< EtherCAT master */)
slave++) {
ec_slave_request_state(slave, EC_SLAVE_STATE_PREOP);
}
#ifdef EC_EOE
// ... but set EoE slaves to OP
list_for_each_entry(eoe, &master->eoe_handlers, list) {
@ -1548,6 +1549,11 @@ int ecrt_master_activate(ec_master_t *master)
domain_offset += domain->data_size;
}
// always set DC reference clock to OP
if (master->dc_ref_clock) {
ec_slave_request_state(master->dc_ref_clock, EC_SLAVE_STATE_OP);
}
up(&master->master_sem);
// restart EoE process and master thread with new locking