Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wrpc-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
wr-cores
wrpc-sw
Commits
76b3e255
Commit
76b3e255
authored
11 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
calibrator: remove explicit printf
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
75881c80
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/rxts_calibrator.c
+10
-10
10 additions, 10 deletions
dev/rxts_calibrator.c
with
10 additions
and
10 deletions
dev/rxts_calibrator.c
+
10
−
10
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
"
);
pp_
printf
(
"Locking PLL...
\n
"
);
while
(
!
spll_check_lock
(
0
))
timer_delay
(
100
);
printf
(
"
\n
"
);
pp_
printf
(
"
\n
"
);
printf
(
"Calibrating RX timestamper...
\n
"
);
pp_
printf
(
"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
"
);
pp_
printf
(
"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
"
);
pp_
printf
(
"Something went wrong while writing EEPROM
\n
"
);
return
-
1
;
}
}
else
{
printf
(
"t24p value is %d ps, storing to EEPROM
\n
"
,
*
value
);
pp_
printf
(
"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
"
);
pp_
printf
(
"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
);
pp_
printf
(
"Something went wrong while reading from EEPROM: %d
\n
"
,
rv
);
else
printf
(
"t24p read from EEPROM: %d ps
\n
"
,
*
value
);
pp_
printf
(
"t24p read from EEPROM: %d ps
\n
"
,
*
value
);
return
rv
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment