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
de2b6db5
Commit
de2b6db5
authored
Feb 20, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: remove rx_calibrated and tx_calibrated from state.calib
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
d6cd932f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
16 deletions
+5
-16
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+3
-4
wrpc-calibration.c
arch-wrpc/wrpc-calibration.c
+2
-12
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
de2b6db5
...
...
@@ -249,13 +249,12 @@ int wrc_ptp_start(void)
/* sfp match was done before so read calibration data */
if
(
wrpc_read_calibration_data
(
ppi
,
NULL
,
wrpc_read_calibration_data
(
ppi
,
NULL
,
&
scaledBitSlide
,
&
scaledDelayCoefficient
,
&
scaledSfpDeltaTx
,
&
scaledSfpDeltaRx
)
!=
WRH_HW_CALIB_OK
)
{
pp_diag
(
ppi
,
fsm
,
1
,
"Cannot get calibration values (bitslide, alpha, TX/Rx delays
\n
"
);
}
&
scaledSfpDeltaRx
);
ppi
->
timestampCorrectionPortDS
.
semistaticLatency
=
scaledBitSlide
;
if
(
scaledDelayCoefficient
>=
PP_MIN_DELAY_COEFFICIENT_AS_RELDIFF
&&
scaledDelayCoefficient
<=
PP_MAX_DELAY_COEFFICIENT_AS_RELDIFF
)
{
...
...
arch-wrpc/wrpc-calibration.c
View file @
de2b6db5
...
...
@@ -40,23 +40,13 @@ int wrpc_read_calibration_data(
/* check if tx is calibrated,
* if so read data */
if
(
scaledSfpDeltaTx
)
{
if
(
state
.
calib
.
tx_calibrated
)
{
*
scaledSfpDeltaTx
=
picos_to_interval
(
state
.
calib
.
delta_tx_ps
);
}
else
return
WRH_HW_CALIB_NOT_FOUND
;
*
scaledSfpDeltaTx
=
picos_to_interval
(
state
.
calib
.
delta_tx_ps
);
}
/* check if rx is calibrated,
* if so read data */
if
(
scaledSfpDeltaRx
)
{
if
(
state
.
calib
.
rx_calibrated
)
{
*
scaledSfpDeltaRx
=
picos_to_interval
(
state
.
calib
.
delta_rx_ps
);
}
else
return
WRH_HW_CALIB_NOT_FOUND
;
*
scaledSfpDeltaRx
=
picos_to_interval
(
state
.
calib
.
delta_rx_ps
);
}
return
WRH_HW_CALIB_OK
;
...
...
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