Commit ff05bc5c authored by Alessandro Rubini's avatar Alessandro Rubini

added absolute calibration (mostly in ppsi)

This introduces "mode abscal", that forces a gm-lookalike mode in the
node, to send sync once per second. See "absolute calibration" document
by Peter Jansweijer from nikhef.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f2789596
......@@ -5,6 +5,7 @@
#define WRC_MODE_GM 1
#define WRC_MODE_MASTER 2
#define WRC_MODE_SLAVE 3
#define WRC_MODE_ABSCAL 4
extern int ptp_mode;
int wrc_ptp_init(void);
......
ppsi @ e6bc10d1
Subproject commit 9ce04d1be48304629a6ee691f39a96d155013cf4
Subproject commit e6bc10d1e747e78ae237ea39130d9a81305ed97b
......@@ -26,12 +26,14 @@ struct subcmd {
{"gm", wrc_ptp_set_mode, WRC_MODE_GM},
{"master", wrc_ptp_set_mode, WRC_MODE_MASTER},
{"slave", wrc_ptp_set_mode, WRC_MODE_SLAVE},
{"abscal", wrc_ptp_set_mode, WRC_MODE_ABSCAL},
};
static char *is_run[] = {"stopped", "running"};
static char *is_mech[] = {[PP_E2E_MECH] = "e2e", [PP_P2P_MECH] = "p2p"};
static char *is_mode[] = {[WRC_MODE_GM] = "gm", [WRC_MODE_MASTER] = "master",
[WRC_MODE_SLAVE] = "slave"};
[WRC_MODE_SLAVE] = "slave",
[WRC_MODE_ABSCAL] = "abscal"};
static int cmd_ptp(const char *args[])
{
......
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