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
1d1531bc
Commit
1d1531bc
authored
Oct 01, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding automatic t24p calibration when in slave mode
parent
d3c753fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
wrpc-spll.c
arch-wrpc/wrpc-spll.c
+19
-1
No files found.
arch-wrpc/wrpc-spll.c
View file @
1d1531bc
...
...
@@ -10,6 +10,10 @@
#include <pps_gen.h>
#include <softpll_ng.h>
#include "../proto-ext-whiterabbit/wr-constants.h"
#include <rxts_calibrator.h>
#include "wrpc.h"
extern
uint32_t
cal_phase_transition
;
int
wrpc_spll_locking_enable
(
struct
pp_instance
*
ppi
)
{
...
...
@@ -20,7 +24,21 @@ int wrpc_spll_locking_enable(struct pp_instance *ppi)
int
wrpc_spll_locking_poll
(
struct
pp_instance
*
ppi
)
{
return
spll_check_lock
(
0
)
?
WR_SPLL_READY
:
WR_SPLL_ERROR
;
int
locked
;
static
int
t24p_calibrated
=
0
;
locked
=
spll_check_lock
(
0
);
if
(
!
locked
)
{
t24p_calibrated
=
0
;
}
else
if
(
locked
&&
!
t24p_calibrated
)
{
/*run t24p calibration if needed*/
calib_t24p
(
WRC_MODE_SLAVE
,
&
cal_phase_transition
);
t24p_calibrated
=
1
;
}
return
locked
?
WR_SPLL_READY
:
WR_SPLL_ERROR
;
}
int
wrpc_spll_locking_disable
(
struct
pp_instance
*
ppi
)
...
...
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