Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
76b3e255
Commit
76b3e255
authored
May 21, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calibrator: remove explicit printf
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
75881c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
rxts_calibrator.c
dev/rxts_calibrator.c
+10
-10
No files found.
dev/rxts_calibrator.c
View file @
76b3e255
...
...
@@ -176,17 +176,17 @@ int rxts_calibration_update(uint32_t *t24p_value)
int
measure_t24p
(
uint32_t
*
value
)
{
int
rv
;
m
printf
(
"Waiting for link...
\n
"
);
pp_
printf
(
"Waiting for link...
\n
"
);
while
(
!
ep_link_up
(
NULL
))
timer_delay
(
100
);
spll_init
(
SPLL_MODE_SLAVE
,
0
,
1
);
printf
(
"Locking PLL...
\n
"
);
p
p_p
rintf
(
"Locking PLL...
\n
"
);
while
(
!
spll_check_lock
(
0
))
timer_delay
(
100
);
printf
(
"
\n
"
);
p
p_p
rintf
(
"
\n
"
);
printf
(
"Calibrating RX timestamper...
\n
"
);
p
p_p
rintf
(
"Calibrating RX timestamper...
\n
"
);
rxts_calibration_start
();
while
(
!
(
rv
=
rxts_calibration_update
(
value
)))
;
...
...
@@ -202,17 +202,17 @@ static int calib_t24p_slave(uint32_t *value)
while
(
!
(
rv
=
rxts_calibration_update
(
value
)))
;
if
(
rv
<
0
)
{
printf
(
"Could not calibrate t24p, trying to read from EEPROM
\n
"
);
p
p_p
rintf
(
"Could not calibrate t24p, trying to read from EEPROM
\n
"
);
if
(
eeprom_phtrans
(
WRPC_FMC_I2C
,
FMC_EEPROM_ADR
,
value
,
0
)
<
0
)
{
printf
(
"Something went wrong while writing EEPROM
\n
"
);
p
p_p
rintf
(
"Something went wrong while writing EEPROM
\n
"
);
return
-
1
;
}
}
else
{
printf
(
"t24p value is %d ps, storing to EEPROM
\n
"
,
*
value
);
p
p_p
rintf
(
"t24p value is %d ps, storing to EEPROM
\n
"
,
*
value
);
if
(
eeprom_phtrans
(
WRPC_FMC_I2C
,
FMC_EEPROM_ADR
,
value
,
1
)
<
0
)
{
printf
(
"Something went wrong while writing EEPROM
\n
"
);
p
p_p
rintf
(
"Something went wrong while writing EEPROM
\n
"
);
return
-
1
;
}
}
...
...
@@ -226,9 +226,9 @@ static int calib_t24p_master(uint32_t *value)
rv
=
eeprom_phtrans
(
WRPC_FMC_I2C
,
FMC_EEPROM_ADR
,
value
,
0
);
if
(
rv
<
0
)
printf
(
"Something went wrong while reading from EEPROM: %d
\n
"
,
rv
);
p
p_p
rintf
(
"Something went wrong while reading from EEPROM: %d
\n
"
,
rv
);
else
printf
(
"t24p read from EEPROM: %d ps
\n
"
,
*
value
);
p
p_p
rintf
(
"t24p read from EEPROM: %d ps
\n
"
,
*
value
);
return
rv
;
}
...
...
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