127 default: |
127 default: |
128 break; |
128 break; |
129 } |
129 } |
130 } |
130 } |
131 |
131 |
132 if (sync->slave->master->debug_level) |
132 EC_SLAVE_DBG(sync->slave, 1, "SM%u: Addr 0x%04X, Size %3u," |
133 EC_DBG("SM%u: Addr 0x%04X, Size %3u, Ctrl 0x%02X, En %u\n", |
133 " Ctrl 0x%02X, En %u\n", |
134 sync_index, sync->physical_start_address, |
134 sync_index, sync->physical_start_address, |
135 data_size, control, enable); |
135 data_size, control, enable); |
136 |
136 |
137 EC_WRITE_U16(data, sync->physical_start_address); |
137 EC_WRITE_U16(data, sync->physical_start_address); |
138 EC_WRITE_U16(data + 2, data_size); |
138 EC_WRITE_U16(data + 2, data_size); |
139 EC_WRITE_U8 (data + 4, control); |
139 EC_WRITE_U8 (data + 4, control); |
140 EC_WRITE_U8 (data + 5, 0x00); // status byte (read only) |
140 EC_WRITE_U8 (data + 5, 0x00); // status byte (read only) |