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
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
bc12598d
Commit
bc12598d
authored
Feb 04, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: add q to quit from monitor
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
94973226
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
wrpc.tex
doc/wrpc.tex
+3
-3
monitor_ppsi.c
monitor/monitor_ppsi.c
+4
-4
shell.c
shell/shell.c
+1
-1
No files found.
doc/wrpc.tex
View file @
bc12598d
...
...
@@ -830,8 +830,8 @@ figure below).
The information is refreshed at every WR iteration or periodically if
nothing else happens
(
so you see an up
-
to
-
date timestamp
)
. Only values are
updated at every refresh. To force refresh of entire gui please press
\texttt
{
r
}
key. To
exit from this console mode press <Esc>
. A full description of the information
\texttt
{
r
}
key. To
exit from this console mode press
\texttt
{
<Esc>
}
or
\texttt
{
q
}
. A full description of the information
reporter by
\textit
{
gui
}
is provided in Appendix
\ref
{
WRPC GUI elements
}
.
\noindent\textbf
{
Note:
}
the
\textit
{
Synchronization status
}
and
\textit
{
Timing
...
...
@@ -841,7 +841,7 @@ the part above \texttt{Synchronization status}.
\vspace
{
1
em
}
\includegraphics
[
width
=
1
2
cm
]
{
wrpc
_
mon.png
}
\includegraphics
[
width
=
1
5
cm
]
{
wrpc
_
mon.png
}
\vspace
{
1
em
}
If you want to log statistics from the WRPC operation, it is better to use a
...
...
monitor/monitor_ppsi.c
View file @
bc12598d
...
...
@@ -339,7 +339,7 @@ void print_gui_description(void)
pcprintf
(
1
,
1
,
C_BLUE
,
"%s WR PTP Core Sync Monitor %s"
,
wrc_hw_name
,
build_revision
);
cprintf
(
C_MAGENTA
,
"
\n
Esc = exit; r = redraw GUI"
);
cprintf
(
C_MAGENTA
,
"
\n
Esc
or q
= exit; r = redraw GUI"
);
cprintf
(
C_BLUE
,
"
\n\n
TAI Time:%25sUTC offset:"
,
""
);
...
...
@@ -648,7 +648,7 @@ int wrc_mon_gui(void)
}
/* clear colors */
pp_printf
(
"\e[m"
);
pp_printf
(
"\e[m
\n
"
);
/* clear till the end of a screen */
term_clear_to_end
();
...
...
@@ -811,13 +811,13 @@ void show_servo(struct pp_instance *ppi)
pcprintf
(
33
,
26
,
C_WHITE
,
"%22s"
,
optimized_pp_time_toString_ps_as_ns
(
&
wr_servo_ext
->
delta_txm
,
buf
));
cprintf
(
C_BLUE
,
" RX:"
);
/* print and clear till the end of a line */
cprintf
(
C_WHITE
,
"%22s\e[K
\n
"
,
optimized_pp_time_toString_ps_as_ns
(
&
wr_servo_ext
->
delta_rxm
,
buf
));
cprintf
(
C_WHITE
,
"%22s\e[K"
,
optimized_pp_time_toString_ps_as_ns
(
&
wr_servo_ext
->
delta_rxm
,
buf
));
/* Slave PHY delays TX */
pcprintf
(
34
,
26
,
C_WHITE
,
"%22s"
,
optimized_pp_time_toString_ps_as_ns
(
&
wr_servo_ext
->
delta_txs
,
buf
));
cprintf
(
C_BLUE
,
" RX:"
);
/* print and clear till the end of a line */
cprintf
(
C_WHITE
,
"%22s\e[K
\n
"
,
optimized_pp_time_toString_ps_as_ns
(
&
wr_servo_ext
->
delta_rxs
,
buf
));
cprintf
(
C_WHITE
,
"%22s\e[K"
,
optimized_pp_time_toString_ps_as_ns
(
&
wr_servo_ext
->
delta_rxs
,
buf
));
}
}
...
...
shell/shell.c
View file @
bc12598d
...
...
@@ -262,7 +262,7 @@ int shell_interactive()
if
(
c
==
'r'
)
redraw_gui
();
if
(
!
shell_ui_callback
||
shell_ui_callback
()
<
0
||
c
==
27
)
if
(
!
shell_ui_callback
||
shell_ui_callback
()
<
0
||
c
==
27
||
c
==
'q'
)
{
cmd_buf
[
cmd_len
]
=
0
;
state
=
SH_PROMPT
;
...
...
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