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
31
Issues
31
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
40d30f43
Commit
40d30f43
authored
May 18, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/softpll_ng.c: added spll_get_dac() function
parent
65e7dd68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
softpll_ng.c
dev/softpll_ng.c
+13
-1
No files found.
dev/softpll_ng.c
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
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