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
7
Merge Requests
7
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
74378610
Commit
74378610
authored
Aug 05, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softpll: use TRACE_DEV instead of TRACE to compile for both wrs and wrpc
parent
e52af7f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spll_common.c
softpll/spll_common.c
+2
-2
spll_main.c
softpll/spll_main.c
+2
-2
No files found.
softpll/spll_common.c
View file @
74378610
...
...
@@ -125,7 +125,7 @@ Channels (spll_n_chan_ref ... spll_n_chan_out + spll_n_chan_ref-1) are the outpu
void
spll_enable_tagger
(
int
channel
,
int
enable
)
{
TRACE
(
"EnableTagger %d %d
\n
"
,
channel
,
enable
);
TRACE_DEV
(
"EnableTagger %d %d
\n
"
,
channel
,
enable
);
if
(
channel
>=
spll_n_chan_ref
)
{
/* Output channel? */
if
(
enable
)
SPLL
->
OCER
|=
1
<<
(
channel
-
spll_n_chan_ref
);
...
...
@@ -138,7 +138,7 @@ void spll_enable_tagger(int channel, int enable)
SPLL
->
RCER
&=
~
(
1
<<
channel
);
}
TRACE
(
"%s: ch %d, OCER 0x%x, RCER 0x%x
\n
"
,
__FUNCTION__
,
channel
,
SPLL
->
OCER
,
SPLL
->
RCER
);
TRACE_DEV
(
"%s: ch %d, OCER 0x%x, RCER 0x%x
\n
"
,
__FUNCTION__
,
channel
,
SPLL
->
OCER
,
SPLL
->
RCER
);
}
void
biquad_init
(
spll_biquad_t
*
bq
,
const
int
*
coefs
,
int
shift
)
...
...
softpll/spll_main.c
View file @
74378610
...
...
@@ -47,7 +47,7 @@ void mpll_init(struct spll_main_state *s, int id_ref,
s
->
id_out
=
id_out
;
s
->
dac_index
=
id_out
-
spll_n_chan_ref
;
TRACE
(
"ref %d out %d idx %x"
,
s
->
id_ref
,
s
->
id_out
,
s
->
dac_index
);
TRACE
_DEV
(
"ref %d out %d idx %x"
,
s
->
id_ref
,
s
->
id_out
,
s
->
dac_index
);
pi_init
((
spll_pi_t
*
)
&
s
->
pi
);
ld_init
((
spll_lock_det_t
*
)
&
s
->
ld
);
...
...
@@ -55,7 +55,7 @@ void mpll_init(struct spll_main_state *s, int id_ref,
void
mpll_start
(
struct
spll_main_state
*
s
)
{
TRACE
(
"MPLL_Start [dac %d]
\n
"
,
s
->
dac_index
);
TRACE
_DEV
(
"MPLL_Start [dac %d]
\n
"
,
s
->
dac_index
);
s
->
adder_ref
=
s
->
adder_out
=
0
;
s
->
tag_ref
=
-
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