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
7fe4b5c5
Commit
7fe4b5c5
authored
Mar 19, 2020
by
Tomasz Wlostowski
Committed by
Grzegorz Daniluk
Oct 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update spll_init() calls to accomodate API changes
parent
46d19aaf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
rxts_calibrator.c
dev/rxts_calibrator.c
+1
-1
spll.c
host/spll.c
+1
-1
rt_ipc.c
ipc/rt_ipc.c
+10
-1
wrc_main.c
wrc_main.c
+1
-1
No files found.
dev/rxts_calibrator.c
View file @
7fe4b5c5
...
...
@@ -201,7 +201,7 @@ int measure_t24p(uint32_t *value)
while
(
!
ep_link_up
(
NULL
))
timer_delay_ms
(
100
);
spll_init
(
SPLL_MODE_SLAVE
,
0
,
1
);
spll_init
(
SPLL_MODE_SLAVE
,
0
,
SPLL_FLAG_USE_LJD
);
pp_printf
(
"Locking PLL...
\n
"
);
while
(
!
spll_check_lock
(
0
))
timer_delay_ms
(
100
);
...
...
host/spll.c
View file @
7fe4b5c5
...
...
@@ -3,7 +3,7 @@
void
spll_very_init
(
void
)
{}
void
spll_init
(
int
mode
,
int
ref_channel
,
int
align_pp
s
)
void
spll_init
(
int
mode
,
int
ref_channel
,
int
flag
s
)
{}
void
spll_enable_ptracker
(
int
ref_channel
,
int
enable
)
...
...
ipc/rt_ipc.c
View file @
7fe4b5c5
...
...
@@ -21,6 +21,8 @@
static
struct
rts_pll_state
pstate
;
extern
int
scb_ljd_present
;
static
void
clear_state
(
void
)
{
int
i
;
...
...
@@ -71,7 +73,14 @@ int rts_set_mode(int mode)
{
pp_printf
(
"RT: Setting mode to %s.
\n
"
,
options
[
i
].
desc
);
if
(
options
[
i
].
do_init
)
spll_init
(
options
[
i
].
mode_spll
,
0
,
1
);
{
uint32_t
flags
=
SPLL_FLAG_ALIGN_PPS
;
if
(
scb_ljd_present
)
flags
|=
SPLL_FLAG_USE_LJD
;
spll_init
(
options
[
i
].
mode_spll
,
0
,
flags
);
}
else
spll_init
(
SPLL_MODE_DISABLED
,
0
,
0
);
}
...
...
wrc_main.c
View file @
7fe4b5c5
...
...
@@ -133,7 +133,7 @@ static int wrc_check_link(void)
wrc_ptp_stop
();
rv
=
1
;
/* special case */
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
1
);
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
SPLL_FLAG_ALIGN_PPS
);
shw_pps_gen_enable_output
(
0
);
}
else
...
...
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