Commit 41c3a04f authored by Alessandro Rubini's avatar Alessandro Rubini

warnings: tests/measure_t24p.c (not complete)

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a908b16b
......@@ -21,5 +21,7 @@ extern int abs(int val);
/* The following from ptp-noposix */
extern void wr_servo_reset(void);
void update_rx_queues(void);
void spll_enable_ptracker(int ref_channel, int enable);
#endif /* __WRC_H__ */
#include <stdio.h>
#include <inttypes.h>
#include <stdarg.h>
#include <wrc.h>
#define INET_ADDRSTRLEN 16
#include "syscon.h"
......@@ -17,10 +18,12 @@
#include "ptpd.h"
#if 0 /* not used, currently */
static int get_bitslide(int ep)
{
return (pcs_read(16) >> 4) & 0x1f;
}
#endif
struct meas_entry {
int delta_ns;
......@@ -42,7 +45,7 @@ static int meas_phase_range(wr_socket_t * sock, int phase_min, int phase_max,
int phase_step, struct meas_entry *results)
{
char buf[128];
wr_timestamp_t ts_tx, ts_rx, ts_sync;
wr_timestamp_t ts_rx, ts_sync;
wr_sockaddr_t from;
MsgHeader mhdr;
int setpoint = phase_min, i = 0, phase;
......@@ -100,6 +103,7 @@ static int find_transition(struct meas_entry *results, int n, int positive)
&& (results[(i + 1) % n].ahead == positive))
return i;
}
return -1;
}
extern void ptpd_netif_set_phase_transition(wr_socket_t * sock, int phase);
......
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