Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
9c98c978
Commit
9c98c978
authored
Mar 13, 2017
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr-calibration: remove now-unused variable
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0a49d0dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
faults.c
arch-wrpc/faults.c
+1
-0
state-wr-calibration.c
proto-ext-whiterabbit/state-wr-calibration.c
+3
-3
No files found.
arch-wrpc/faults.c
View file @
9c98c978
...
...
@@ -50,6 +50,7 @@ static int cmd_fault(const char *args[])
(
int
)((
t
->
scaled_nsecs
*
1000
)
>>
16
));
}
pp_printf
(
"
\n
"
);
return
0
;
}
pp_printf
(
"Use:
\"
fault drop [<rxdrop> <txdrop>]
\"
(0..999)
\n
"
);
...
...
proto-ext-whiterabbit/state-wr-calibration.c
View file @
9c98c978
...
...
@@ -16,7 +16,7 @@
int
wr_calibration
(
struct
pp_instance
*
ppi
,
unsigned
char
*
pkt
,
int
plen
)
{
struct
wr_dsport
*
wrp
=
WR_DSPOR
(
ppi
);
int
e
=
0
,
sendmsg
=
0
;
int
sendmsg
=
0
;
uint32_t
delta
;
if
(
ppi
->
is_new_state
)
{
...
...
@@ -31,7 +31,7 @@ int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen)
if
(
sendmsg
)
{
__pp_timeout_set
(
ppi
,
PP_TO_EXT_0
,
wrp
->
calPeriod
);
e
=
msg_issue_wrsig
(
ppi
,
CALIBRATE
);
msg_issue_wrsig
(
ppi
,
CALIBRATE
);
wrp
->
wrPortState
=
WR_PORT_CALIBRATION_0
;
if
(
wrp
->
calibrated
)
wrp
->
wrPortState
=
WR_PORT_CALIBRATION_2
;
...
...
@@ -126,7 +126,7 @@ int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen)
break
;
case
WR_PORT_CALIBRATION_8
:
/* send deltas to the other port and go to the next state */
e
=
msg_issue_wrsig
(
ppi
,
CALIBRATED
);
msg_issue_wrsig
(
ppi
,
CALIBRATED
);
ppi
->
next_state
=
WRS_CALIBRATED
;
wrp
->
calibrated
=
TRUE
;
...
...
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