master/master.c
changeset 408 0eda82d1a8c1
parent 404 7f7f429e13c7
child 412 2e50ddc3e777
equal deleted inserted replaced
407:b73c9f7be5a1 408:0eda82d1a8c1
   678     size_t sync_size;
   678     size_t sync_size;
   679 
   679 
   680     sync_size = ec_slave_calc_sync_size(slave, sync);
   680     sync_size = ec_slave_calc_sync_size(slave, sync);
   681 
   681 
   682     if (slave->master->debug_level) {
   682     if (slave->master->debug_level) {
   683         EC_INFO("Slave %i, sync manager %i:\n", slave->ring_position,
   683         EC_DBG("Slave %i, sync manager %i:\n", slave->ring_position,
   684                 sync->index);
   684                sync->index);
   685         EC_INFO("  Address: 0x%04X\n", sync->physical_start_address);
   685         EC_DBG("  Address: 0x%04X\n", sync->physical_start_address);
   686         EC_INFO("     Size: %i\n", sync_size);
   686         EC_DBG("     Size: %i\n", sync_size);
   687         EC_INFO("  Control: 0x%02X\n", sync->control_register);
   687         EC_DBG("  Control: 0x%02X\n", sync->control_register);
   688     }
   688     }
   689 
   689 
   690     EC_WRITE_U16(data,     sync->physical_start_address);
   690     EC_WRITE_U16(data,     sync->physical_start_address);
   691     EC_WRITE_U16(data + 2, sync_size);
   691     EC_WRITE_U16(data + 2, sync_size);
   692     EC_WRITE_U8 (data + 4, sync->control_register);
   692     EC_WRITE_U8 (data + 4, sync->control_register);