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
1c20f1da
Commit
1c20f1da
authored
Apr 24, 2018
by
Jean-Claude BAU
Committed by
Adam Wujek
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WRPC optimization on proto-standard : numberPorts>1 (280 bytes)
parent
8277da4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common-fun.c
proto-standard/common-fun.c
+1
-1
state-initializing.c
proto-standard/state-initializing.c
+2
-2
No files found.
proto-standard/common-fun.c
View file @
1c20f1da
...
...
@@ -92,7 +92,7 @@ int st_com_check_announce_receive_timeout(struct pp_instance *ppi)
pp_timeout_set
(
ppi
,
PP_TO_ANN_RECEIPT
);
if
(
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
!=
PP_CLASS_SLAVE_ONLY
&&
(
ppi
->
role
!=
PPSI_ROLE_SLAVE
))
{
if
(
DSDEF
(
ppi
)
->
numberPorts
>
1
)
{
if
(
!
ARCH_IS_WRPC
()
&&
DSDEF
(
ppi
)
->
numberPorts
>
1
)
{
for
(
i
=
0
;
i
<
ppg
->
defaultDS
->
numberPorts
;
i
++
)
{
if
((
INST
(
ppg
,
i
)
->
state
==
PPS_UNCALIBRATED
)
||
(
INST
(
ppg
,
i
)
->
state
==
PPS_SLAVE
))
...
...
proto-standard/state-initializing.c
View file @
1c20f1da
...
...
@@ -53,7 +53,7 @@ int pp_initializing(struct pp_instance *ppi, void *buf, int len)
goto
failure
;
/* only fill in the data set when initializing */
if
(
DSDEF
(
ppi
)
->
numberPorts
>
1
)
{
if
(
!
ARCH_IS_WRPC
()
&&
DSDEF
(
ppi
)
->
numberPorts
>
1
)
{
for
(
i
=
0
;
i
<
ppg
->
defaultDS
->
numberPorts
;
i
++
)
{
if
((
INST
(
ppg
,
i
)
->
state
!=
PPS_INITIALIZING
)
&&
(
INST
(
ppg
,
i
)
->
link_up
==
TRUE
))
initds
=
0
;
...
...
@@ -65,7 +65,7 @@ int pp_initializing(struct pp_instance *ppi, void *buf, int len)
*/
if
(
initds
)
{
if
(
DSDEF
(
ppi
)
->
numberPorts
>
1
)
{
if
(
!
ARCH_IS_WRPC
()
&&
DSDEF
(
ppi
)
->
numberPorts
>
1
)
{
/* Clock identity comes from mac address with 0xff:0xfe intermixed */
mac
=
ppi
->
ch
[
PP_NP_GEN
].
addr
;
/* calculate MAC of Port 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