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
2d55a960
Commit
2d55a960
authored
Feb 03, 2020
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve WR handshake in case of failure
parent
adc08e73
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
state-wr-calibrated.c
proto-ext-whiterabbit/state-wr-calibrated.c
+1
-1
state-wr-locked.c
proto-ext-whiterabbit/state-wr-locked.c
+1
-1
state-wr-m-lock.c
proto-ext-whiterabbit/state-wr-m-lock.c
+1
-1
state-wr-present.c
proto-ext-whiterabbit/state-wr-present.c
+1
-1
state-wr-resp-calib-req.c
proto-ext-whiterabbit/state-wr-resp-calib-req.c
+1
-1
state-wr-s-lock.c
proto-ext-whiterabbit/state-wr-s-lock.c
+1
-1
No files found.
proto-ext-whiterabbit/state-wr-calibrated.c
View file @
2d55a960
...
...
@@ -40,7 +40,7 @@ int wr_calibrated(struct pp_instance *ppi, void *buf, int len, int new_state)
(
wrp
->
wrMode
==
WR_SLAVE
))
{
wrp
->
next_state
=
WRS_WR_LINK_ON
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
%d
) received. CALIBRATE/WR_MODE_ON was expected
\n
"
,
wrMsgId
);
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
x%04x
) received. CALIBRATE/WR_MODE_ON was expected
\n
"
,
wrMsgId
);
wr_handshake_fail
(
ppi
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-locked.c
View file @
2d55a960
...
...
@@ -34,7 +34,7 @@ int wr_locked(struct pp_instance *ppi, void *buf, int len, int new_state)
if
(
wrMsgId
==
CALIBRATE
)
{
wrp
->
next_state
=
WRS_RESP_CALIB_REQ
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
%d
) received. CALIBRATE was expected
\n
"
,
wrMsgId
);
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
x%04x
) received. CALIBRATE was expected
\n
"
,
wrMsgId
);
wr_handshake_fail
(
ppi
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-m-lock.c
View file @
2d55a960
...
...
@@ -34,7 +34,7 @@ int wr_m_lock(struct pp_instance *ppi, void *buf, int len, int new_state)
if
(
wrMsgId
==
LOCKED
)
{
wrp
->
next_state
=
WRS_CALIBRATION
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
%d
) received. LOCKED was expected
\n
"
,
wrMsgId
);
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
x%04x
) received. LOCKED was expected
\n
"
,
wrMsgId
);
wr_handshake_fail
(
ppi
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-present.c
View file @
2d55a960
...
...
@@ -36,7 +36,7 @@ int wr_present(struct pp_instance *ppi, void *buf, int len, int new_state)
if
(
wrMsgId
==
LOCK
)
{
wrp
->
next_state
=
WRS_S_LOCK
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
%d
) received. LOCK was expected
\n
"
,
wrMsgId
);
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
x%04x
) received. LOCK was expected
\n
"
,
wrMsgId
);
wr_handshake_fail
(
ppi
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-resp-calib-req.c
View file @
2d55a960
...
...
@@ -36,7 +36,7 @@ int wr_resp_calib_req(struct pp_instance *ppi, void *buf, int len, int new_state
WRS_WR_LINK_ON
:
WRS_CALIBRATION
;
}
else
{
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
%d
) received. CALIBRATED was expected
\n
"
,
wrMsgId
);
pp_diag
(
ppi
,
ext
,
1
,
"WR: Invalid msgId(
x%04x
) received. CALIBRATED was expected
\n
"
,
wrMsgId
);
wr_handshake_fail
(
ppi
);
}
return
0
;
...
...
proto-ext-whiterabbit/state-wr-s-lock.c
View file @
2d55a960
...
...
@@ -23,7 +23,7 @@ int wr_s_lock(struct pp_instance *ppi, void *buf, int len, int new_state)
}
else
{
int
poll_ret
=
WRH_OPER
()
->
locking_poll
(
ppi
);
if
(
poll_ret
==
WRH_SPLL_
READY
)
{
if
(
poll_ret
==
WRH_SPLL_
LOCKED
)
{
wrp
->
next_state
=
WRS_LOCKED
;
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