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
4af634b1
Commit
4af634b1
authored
Aug 05, 2013
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softpll: remove unused functionality (resync DDMTD counters), start ptrackets when MPLL starts up
parent
e8c2a21e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
20 deletions
+3
-20
softpll_ng.c
softpll/softpll_ng.c
+3
-0
spll_common.c
softpll/spll_common.c
+0
-17
spll_common.h
softpll/spll_common.h
+0
-2
spll_ptracker.c
softpll/spll_ptracker.c
+0
-1
No files found.
softpll/softpll_ng.c
View file @
4af634b1
...
...
@@ -190,7 +190,10 @@ static inline void sequencing_fsm(struct softpll_state *s, int tag_value, int ta
case
SEQ_WAIT_MAIN
:
{
if
(
s
->
mpll
.
ld
.
locked
)
{
start_ptrackers
(
s
);
s
->
seq_state
=
SEQ_READY
;
}
break
;
}
...
...
softpll/spll_common.c
View file @
4af634b1
...
...
@@ -138,20 +138,3 @@ void spll_enable_tagger(int channel, int enable)
// TRACE("%s: ch %d, OCER 0x%x, RCER 0x%x\n", __FUNCTION__, channel, SPLL->OCER, SPLL->RCER);
}
void
spll_resync_dmtd_counter
(
int
channel
)
{
if
(
channel
>=
spll_n_chan_ref
)
/* Output channel? */
SPLL
->
CRR_OUT
=
1
<<
(
channel
-
spll_n_chan_ref
);
else
SPLL
->
CRR_IN
=
1
<<
channel
;
}
int
spll_check_dmtd_resync
(
int
channel
)
{
if
(
channel
>=
spll_n_chan_ref
)
/* Output channel? */
return
(
SPLL
->
CRR_OUT
&
(
1
<<
(
channel
-
spll_n_chan_ref
)))
?
1
:
0
;
else
return
(
SPLL
->
CRR_IN
&
(
1
<<
channel
))
?
1
:
0
;
}
softpll/spll_common.h
View file @
4af634b1
...
...
@@ -73,7 +73,5 @@ void lowpass_init(spll_lowpass_t *lp, int alpha);
int
lowpass_update
(
spll_lowpass_t
*
lp
,
int
x
);
void
spll_enable_tagger
(
int
channel
,
int
enable
);
void
spll_resync_dmtd_counter
(
int
channel
);
int
spll_check_dmtd_resync
(
int
channel
);
#endif // __SPLL_COMMON_H
softpll/spll_ptracker.c
View file @
4af634b1
...
...
@@ -35,7 +35,6 @@ void ptracker_start(struct spll_ptracker_state *s)
s
->
sample_n
=
0
;
s
->
preserve_sign
=
0
;
spll_resync_dmtd_counter
(
s
->
id_b
);
spll_enable_tagger
(
s
->
id_a
,
1
);
spll_enable_tagger
(
s
->
id_b
,
1
);
}
...
...
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