Commit 1eb66f67 authored by Aurelio Colosimo's avatar Aurelio Colosimo

arch-spec/spec-calibration.c use spec_read_calibration_data

spec_calibrating_poll was using ep_get_deltas instead of
spec_read_calibration_data, like freestanding-wrapper.c does in wrpc-sw.
The whole spec-calibration.c is obsolete, since it should simply be a
wrapper for wrpc-sw functions defined in
ptp-noposix/libposix/freestanding-wrapper.c
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent 393feba6
......@@ -66,8 +66,9 @@ int spec_calibrating_poll(struct pp_instance *ppi, int txrx, uint32_t *delta)
{
uint32_t delta_rx = 0, delta_tx = 0;
/* FIXME: why delta is 64bit whereas ep_get_deltas accepts 32bit? */
ep_get_deltas( &delta_tx, &delta_rx);
/* FIXME: why delta was 64bit whereas ep_get_deltas accepts 32bit? */
spec_read_calibration_data(OPTS(ppi)->iface_name,
&delta_tx, &delta_rx, NULL, NULL);
if (txrx == WR_HW_CALIB_TX)
*delta = delta_tx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment