Source
2434
2434
*/
2435
2435
static void nsp32_set_sync_entry(nsp32_hw_data *data,
2436
2436
nsp32_target *target,
2437
2437
int entry,
2438
2438
unsigned char offset)
2439
2439
{
2440
2440
unsigned char period, ackwidth, sample_rate;
2441
2441
2442
2442
period = data->synct[entry].period_num;
2443
2443
ackwidth = data->synct[entry].ackwidth;
2444
-
offset = offset;
2445
2444
sample_rate = data->synct[entry].sample_rate;
2446
2445
2447
2446
target->syncreg = TO_SYNCREG(period, offset);
2448
2447
target->ackwidth = ackwidth;
2449
2448
target->offset = offset;
2450
2449
target->sample_reg = sample_rate | SAMPLING_ENABLE;
2451
2450
2452
2451
nsp32_dbg(NSP32_DEBUG_SYNC, "set sync");
2453
2452
}
2454
2453