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
32
Issues
32
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
77ebeae5
Commit
77ebeae5
authored
May 09, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/softpll.c: fixed phase sign to match the DMPLL in the WR switch
parent
9a4db26d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
softpll.c
dev/softpll.c
+4
-4
No files found.
dev/softpll.c
View file @
77ebeae5
...
...
@@ -334,10 +334,10 @@ void softpll_enable()
int
softpll_check_lock
()
{
/*
TRACE_DEV("LCK h:f%d l%d d: f%d l%d err %d\n",
TRACE_DEV
(
"LCK h:f%d l%d d: f%d l%d err %d
\n
"
,
pstate
.
h_freq_mode
,
pstate
.
h_locked
,
pstate
.
d_freq_mode
,
pstate
.
d_locked
,
pstate.d_freq_error);
*/
pstate
.
d_freq_error
);
return
pstate
.
h_locked
&&
pstate
.
d_locked
;
}
...
...
@@ -349,8 +349,8 @@ int softpll_busy()
void
softpll_set_phase
(
int
ps
)
{
pstate
.
d_phase_shift
=
(
int32_t
)
((
int64_t
)
ps
*
16384LL
/
8000LL
);
TRACE_
WRSERVO
(
"ADJdelta: phase %d [ps], %d units
\n
"
,
ps
,
pstate
.
d_phase_shift
);
pstate
.
d_phase_shift
=
-
(
int32_t
)
((
int64_t
)
ps
*
16384LL
/
8000LL
);
TRACE_
DEV
(
"ADJdelta: phase %d [ps], %d units
\n
"
,
ps
,
pstate
.
d_phase_shift
);
}
void
softpll_disable
()
...
...
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