Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
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
White Rabbit Switch - Software
Commits
91abf08d
Commit
91abf08d
authored
Jan 30, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt_client.c : Fix errors in printed messages when VERBOSE mode set
parent
c6f246dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
rt_client.c
userspace/libwr/rt_client.c
+11
-7
No files found.
userspace/libwr/rt_client.c
View file @
91abf08d
...
...
@@ -31,7 +31,8 @@
static
struct
minipc_ch
*
client
;
//#define VERBOSE
// #define VERBOSE
#include <libwr/wrs-msg.h>
/* Queries the RT CPU PLL state */
int
rts_get_state
(
struct
rts_pll_state
*
state
)
...
...
@@ -43,17 +44,20 @@ int rts_get_state(struct rts_pll_state *state)
return
ret
;
#ifdef VERBOSE
pr_debug
(
"RTS State Dump:
\n
"
);
pr_debug
(
"CurrentRef: %d Mode: %d Flags: %x
\n
"
,
state
->
current_ref
,
state
->
mode
,
state
->
flags
);
for
(
i
=
0
;
i
<
RTS_PLL_CHANNELS
;
i
++
)
pr_debug
(
"Ch%d: setpoint: %dps current: %dps "
{
int
i
;
pr_info
(
"RTS State Dump:
\n
"
);
pr_info
(
"CurrentRef: %d Mode: %d Flags: %x
\n
"
,
state
->
current_ref
,
state
->
mode
,
state
->
flags
);
i
=
17
;
pr_info
(
"Ch%d: setpoint: %dps current: %dps "
"loopback: %dps flags: %x
\n
"
,
i
,
state
->
channels
[
i
].
phase_setpoint
,
state
->
channels
[
i
].
phase_current
,
state
->
channels
[
i
].
phase_loopback
,
state
->
channels
[
i
].
flags
);
}
#endif
return
0
;
}
...
...
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