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
b0797a47
Commit
b0797a47
authored
Mar 04, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: rename PPM_NOTHING_TO_DO to PPM_NO_MESSAGE
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b5fb56a3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ieee1588_types.h
include/ppsi/ieee1588_types.h
+2
-1
hooks.c
proto-ext-whiterabbit/hooks.c
+2
-2
state-master.c
proto-standard/state-master.c
+1
-1
No files found.
include/ppsi/ieee1588_types.h
View file @
b0797a47
...
@@ -306,8 +306,9 @@ enum pp_std_messages {
...
@@ -306,8 +306,9 @@ enum pp_std_messages {
PPM_SIGNALING
,
PPM_SIGNALING
,
PPM_MANAGEMENT
,
PPM_MANAGEMENT
,
__PP_NR_MESSAGES_TYPES
,
__PP_NR_MESSAGES_TYPES
,
/* NO_MESSAGE means "no message received", or "eaten by hook" */
PPM_NO_MESSAGE
,
PPM_NOTHING_TO_DO
=
0x100
,
/* for hooks.master_msg() */
};
};
/* Enumeration Domain Number (table 2, page 41) */
/* Enumeration Domain Number (table 2, page 41) */
...
...
proto-ext-whiterabbit/hooks.c
View file @
b0797a47
...
@@ -96,7 +96,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen,
...
@@ -96,7 +96,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen,
hdr
->
correctionfield
.
lsb
=
hdr
->
correctionfield
.
lsb
=
phase_to_cf_units
(
ppi
->
last_rcv_time
.
phase
);
phase_to_cf_units
(
ppi
->
last_rcv_time
.
phase
);
msg_issue_delay_resp
(
ppi
,
time
);
/* no error check */
msg_issue_delay_resp
(
ppi
,
time
);
/* no error check */
msgtype
=
PPM_NO
THING_TO_DO
;
msgtype
=
PPM_NO
_MESSAGE
;
break
;
break
;
case
PPM_PDELAY_REQ
:
case
PPM_PDELAY_REQ
:
...
@@ -114,7 +114,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen,
...
@@ -114,7 +114,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen,
/* We must start the handshake as a WR master */
/* We must start the handshake as a WR master */
wr_handshake_init
(
ppi
,
PPS_MASTER
);
wr_handshake_init
(
ppi
,
PPS_MASTER
);
}
}
msgtype
=
PPM_NO
THING_TO_DO
;
msgtype
=
PPM_NO
_MESSAGE
;
break
;
break
;
}
}
...
...
proto-standard/state-master.c
View file @
b0797a47
...
@@ -71,7 +71,7 @@ int pp_master(struct pp_instance *ppi, uint8_t *pkt, int plen)
...
@@ -71,7 +71,7 @@ int pp_master(struct pp_instance *ppi, uint8_t *pkt, int plen)
/*
/*
* An extension can do special treatment of this message type,
* An extension can do special treatment of this message type,
* possibly returning error or eating the message by returning
* possibly returning error or eating the message by returning
* PPM_NO
THING_TO_DO
* PPM_NO
_MESSAGE
*/
*/
msgtype
=
ppi
->
received_ptp_header
.
messageType
;
msgtype
=
ppi
->
received_ptp_header
.
messageType
;
if
(
pp_hooks
.
master_msg
)
if
(
pp_hooks
.
master_msg
)
...
...
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