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
571e1b1d
Commit
571e1b1d
authored
Feb 27, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: move a simple func to header
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
6ab0c121
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
state-master.c
proto-ext-whiterabbit/state-master.c
+0
-5
wr-api.h
proto-ext-whiterabbit/wr-api.h
+6
-0
No files found.
proto-ext-whiterabbit/state-master.c
View file @
571e1b1d
...
...
@@ -9,11 +9,6 @@
#include "wr-constants.h"
#include "wr-api.h"
static
Integer32
phase_to_cf_units
(
Integer32
phase
)
{
return
(
Integer32
)
((
int64_t
)
phase
*
65536LL
/
1000LL
);
}
int
pp_master
(
struct
pp_instance
*
ppi
,
unsigned
char
*
pkt
,
int
plen
)
{
TimeInternal
*
time
;
...
...
proto-ext-whiterabbit/wr-api.h
View file @
571e1b1d
...
...
@@ -48,6 +48,12 @@ static inline struct wr_dsport *WR_DSPOR(struct pp_instance *ppi)
return
ppi
->
portDS
->
ext_dsport
;
}
static
inline
Integer32
phase_to_cf_units
(
Integer32
phase
)
{
return
(
Integer32
)
((
int64_t
)
phase
*
65536LL
/
1000LL
);
}
/* Pack/Unkpack White rabbit message in the suffix of PTP announce message */
void
msg_pack_announce_wr_tlv
(
struct
pp_instance
*
ppi
);
void
msg_unpack_announce_wr_tlv
(
void
*
buf
,
MsgAnnounce
*
ann
);
...
...
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