Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Projects
Software for White Rabbit PTP Core
Commits
40d30f43
Commit
40d30f43
authored
12 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
dev/softpll_ng.c: added spll_get_dac() function
parent
65e7dd68
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/softpll_ng.c
+13
-1
13 additions, 1 deletion
dev/softpll_ng.c
with
13 additions
and
1 deletion
dev/softpll_ng.c
+
13
−
1
View file @
40d30f43
...
...
@@ -536,8 +536,9 @@ int spll_update_aux_clocks()
break
;
case
AUX_READY
:
if
(
!
softpll
.
mpll
.
ld
.
locked
)
if
(
!
softpll
.
mpll
.
ld
.
locked
||
!
softpll
.
aux
[
i
].
ld
.
locked
)
{
TRACE
(
"[aux] aux channel or mpll lost lock
\n
"
);
SPLL
->
OCCR
&=
~
(
SPLL_OCCR_OUT_LOCK_W
((
1
<<
(
i
+
1
))));
s
->
state
=
AUX_DISABLED
;
}
...
...
@@ -557,4 +558,15 @@ int spll_get_aux_status(int channel)
rval
|=
SPLL_AUX_LOCKED
;
return
rval
;
}
int
spll_get_dac
(
int
index
)
{
if
(
index
<
0
)
return
softpll
.
helper
.
pi
.
y
;
else
if
(
index
==
0
)
return
softpll
.
mpll
.
pi
.
y
;
else
if
(
index
>
0
)
return
softpll
.
aux
[
index
-
1
].
pi
.
y
;
return
0
;
}
\ No newline at end of file
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