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
31
Issues
31
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
c2636f17
Commit
c2636f17
authored
Jun 25, 2017
by
Maciej Lipinski
Committed by
Grzegorz Daniluk
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tools/wrpc-diags] bugfix - wrong regsiter was read for the aux channels
parent
39c3e8a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrpc-diags.c
tools/wrpc-diags.c
+3
-3
No files found.
tools/wrpc-diags.c
View file @
c2636f17
...
...
@@ -105,7 +105,7 @@ static void print_aux_state(uint32_t val)
fprintf
(
stderr
,
"Aux state:
\t\t
"
);
for
(
i
=
0
;
i
<
nch
;
i
++
)
{
if
(
val
&
(
1
<<
i
))
fprintf
(
stderr
,
"ch%d:
vali
d "
,
i
);
fprintf
(
stderr
,
"ch%d:
enable
d "
,
i
);
}
fprintf
(
stderr
,
"
\n
"
);
}
...
...
@@ -207,7 +207,7 @@ static int read_diags(struct cmd_desc *cmdd, struct atom *atoms)
print_servo_status
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_SSTAT
));
print_port_status
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_PSTAT
));
print_ptp_state
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_PTPSTAT
));
print_aux_state
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_
PTP
STAT
));
print_aux_state
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_
A
STAT
));
print_tx_frame_count
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_TXFCNT
));
print_rx_frame_count
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_RXFCNT
));
print_local_time
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_SEC_MSB
),
...
...
@@ -235,7 +235,7 @@ static int read_diags(struct cmd_desc *cmdd, struct atom *atoms)
print_ptp_state
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_PTPSTAT
));
break
;
case
WRCDIAG_CMD_ASTAT
:
print_aux_state
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_
PTP
STAT
));
print_aux_state
(
iomemr32
(
wrcdiag
->
is_be
,
ptr
->
WDIAG_
A
STAT
));
break
;
case
WRCDIAG_CMD_TXFCNT
:
print_tx_frame_count
(
iomemr32
(
wrcdiag
->
is_be
,
...
...
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