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
302e8af8
Commit
302e8af8
authored
Jan 06, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(non tech change) improve code formatting
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
2b8d2e46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wrh-servo.c
proto-ext-common/wrh-servo.c
+1
-1
state-wr-calibration.c
proto-ext-whiterabbit/state-wr-calibration.c
+2
-2
No files found.
proto-ext-common/wrh-servo.c
View file @
302e8af8
...
...
@@ -365,7 +365,7 @@ static int __wrh_servo_update(struct pp_instance *ppi)
}
gs
->
servo_locked
=
gs
->
state
==
WRH_TRACK_PHASE
;
gs
->
servo_locked
=
(
gs
->
state
==
WRH_TRACK_PHASE
)
;
/* Increase number of servo updates with state different than
* WRH_TRACK_PHASE. (Used by SNMP) */
...
...
proto-ext-whiterabbit/state-wr-calibration.c
View file @
302e8af8
...
...
@@ -23,7 +23,7 @@ int wr_calibration(struct pp_instance *ppi, void *buf, int len, int new_state)
TimeInterval
ti
;
/* Calculate deltaTx and update servo*/
delta
=
&
wrp
->
deltaTx
;
delta
=
&
wrp
->
deltaTx
;
ti
=
ppi
->
timestampCorrectionPortDS
.
egressLatency
*
1000
;
delta
->
scaledPicoseconds
.
msb
=
ti
>>
32
;
delta
->
scaledPicoseconds
.
lsb
=
ti
&
0xFFFFFFFF
;
...
...
@@ -33,7 +33,7 @@ int wr_calibration(struct pp_instance *ppi, void *buf, int len, int new_state)
fixedDelta_to_pp_time
(
*
delta
,
&
se
->
delta_txs
);
/* Update servo specific data */
/* Calculate deltaRx and update servo*/
delta
=
&
wrp
->
deltaRx
;
delta
=
&
wrp
->
deltaRx
;
ti
=
((
ppi
->
timestampCorrectionPortDS
.
ingressLatency
+
ppi
->
timestampCorrectionPortDS
.
semistaticLatency
)
*
1000
);
delta
->
scaledPicoseconds
.
msb
=
ti
>>
32
;
...
...
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