Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
08230ee0
Commit
08230ee0
authored
Apr 15, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr-servo: store servo update time and increase WRS_PPSI_SHMEM_VERSION to 13
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
18b1a039
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
wr-api.h
proto-ext-whiterabbit/wr-api.h
+3
-2
wr-servo.c
proto-ext-whiterabbit/wr-servo.c
+1
-0
No files found.
proto-ext-whiterabbit/wr-api.h
View file @
08230ee0
...
...
@@ -12,8 +12,8 @@
#include <ppsi/lib.h>
#include "wr-constants.h"
#define WRS_PPSI_SHMEM_VERSION 1
2
/* remove n_err_rxtx_deltas from struct
* wr_servo_state */
#define WRS_PPSI_SHMEM_VERSION 1
3
/* 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 */
...
...
proto-ext-whiterabbit/wr-servo.c
View file @
08230ee0
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment