Commit 08230ee0 authored by Adam Wujek's avatar Adam Wujek 💬

wr-servo: store servo update time and increase WRS_PPSI_SHMEM_VERSION to 13

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 18b1a039
......@@ -12,8 +12,8 @@
#include <ppsi/lib.h>
#include "wr-constants.h"
#define WRS_PPSI_SHMEM_VERSION 12 /* remove n_err_rxtx_deltas from struct
* wr_servo_state */
#define WRS_PPSI_SHMEM_VERSION 13 /* add update_time to
* struct wr_servo_state */
/*
* This structure is used as extension-specific data in the DSPort
......@@ -176,6 +176,7 @@ struct wr_servo_state {
uint32_t n_err_state;
uint32_t n_err_offset;
uint32_t n_err_delta_rtt;
TimeInternal update_time;
};
/* All data used as extension ppsi-wr must be put here */
......
......@@ -284,6 +284,7 @@ int wr_servo_update(struct pp_instance *ppi)
errcount = 0;
s->update_count++;
ppi->t_ops->get(ppi, &s->update_time);
got_sync = 0;
......
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