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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
e4b8d99f
Commit
e4b8d99f
authored
Feb 03, 2017
by
Adam Wujek
💬
Committed by
Grzegorz Daniluk
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG: 912] show info from multiple AUX clocks
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
b6276fef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
monitor_ppsi.c
monitor/monitor_ppsi.c
+24
-9
No files found.
monitor/monitor_ppsi.c
View file @
e4b8d99f
...
...
@@ -102,6 +102,7 @@ int wrc_mon_gui(void)
int64_t
crtt
;
int64_t
total_asymmetry
;
char
buf
[
20
];
int
n_out
,
i
;
if
(
!
last_jiffies
)
last_jiffies
=
timer_get_tics
()
-
1
-
wrc_ui_refperiod
;
...
...
@@ -200,16 +201,22 @@ int wrc_mon_gui(void)
/* sync source not implemented */
/*cprintf(C_GREY, "Synchronization source: ");
cprintf(C_WHITE, "%s\n", cur_servo_state.sync_source);*/
cprintf
(
C_GREY
,
"Aux clock status: "
);
aux_stat
=
spll_get_aux_status
(
0
);
spll_get_num_channels
(
NULL
,
&
n_out
);
if
(
aux_stat
&
SPLL_AUX_ENABLED
)
cprintf
(
C_GRE
EN
,
"enabled"
);
for
(
i
=
0
;
i
<
n_out
;
i
++
)
{
cprintf
(
C_GRE
Y
,
"Aux clock %d status: "
,
i
);
if
(
aux_stat
&
SPLL_AUX_LOCKED
)
cprintf
(
C_GREEN
,
", locked"
);
pp_printf
(
"
\n
"
);
aux_stat
=
spll_get_aux_status
(
i
);
if
(
aux_stat
&
SPLL_AUX_ENABLED
)
cprintf
(
C_GREEN
,
"enabled"
);
if
(
aux_stat
&
SPLL_AUX_LOCKED
)
cprintf
(
C_GREEN
,
", locked"
);
pp_printf
(
"
\n
"
);
}
cprintf
(
C_BLUE
,
"
\n
Timing parameters:
\n
"
);
...
...
@@ -304,6 +311,8 @@ static int wrc_log_stats(void)
struct
wr_servo_state
*
s
=
&
((
struct
wr_data
*
)
ppi
->
ext_data
)
->
servo_state
;
static
uint32_t
last_jiffies
;
int
n_out
;
int
i
;
if
(
!
wrc_stat_running
)
return
0
;
...
...
@@ -330,8 +339,14 @@ static int wrc_log_stats(void)
pp_printf
(
"sv:%d "
,
(
s
->
flags
&
WR_FLAG_VALID
)
?
1
:
0
);
pp_printf
(
"ss:'%s' "
,
s
->
servo_state_name
);
}
aux_stat
=
spll_get_aux_status
(
0
);
pp_printf
(
"aux:%x "
,
aux_stat
);
spll_get_num_channels
(
NULL
,
&
n_out
);
for
(
i
=
0
;
i
<
n_out
;
i
++
)
{
aux_stat
=
spll_get_aux_status
(
i
);
pp_printf
(
"aux%d:%x "
,
i
,
aux_stat
);
}
/* fixme: clock is not always 125 MHz */
pp_printf
(
"sec:%d nsec:%d "
,
(
uint32_t
)
sec
,
nsec
);
if
(
ptp_mode
==
WRC_MODE_SLAVE
)
{
...
...
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