Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PTP noposix stack
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
PTP noposix stack
Commits
272df604
Commit
272df604
authored
Jun 12, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tom-tmp' into v3-switch_for_wrpc
parents
d9f2709b
a1d8e4b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
protocol.c
PTPWRd/protocol.c
+4
-0
ptpd.h
PTPWRd/ptpd.h
+4
-0
ptpd-wrappers.h
libposix/ptpd-wrappers.h
+2
-1
No files found.
PTPWRd/protocol.c
View file @
272df604
...
@@ -445,6 +445,10 @@ Boolean doInit(RunTimeOpts *rtOpts, PtpPortDS *ptpPortDS)
...
@@ -445,6 +445,10 @@ Boolean doInit(RunTimeOpts *rtOpts, PtpPortDS *ptpPortDS)
else
else
PTPD_TRACE
(
TRACE_PROTO
,
ptpPortDS
,
"wrConfig .............. FORCED configuration
\n
"
)
;
PTPD_TRACE
(
TRACE_PROTO
,
ptpPortDS
,
"wrConfig .............. FORCED configuration
\n
"
)
;
/* Slave-only port reinitialized: reset the servo. FIXME: won't work with multiple slave ports. */
if
(
ptpPortDS
->
wrConfig
==
WR_S_ONLY
)
wr_servo_reset
();
/* Create the timers (standard PTP only, the WR ones are created in another function: initWrData) */
/* Create the timers (standard PTP only, the WR ones are created in another function: initWrData) */
timerInit
(
&
ptpPortDS
->
timers
.
sync
,
"Sync"
);
timerInit
(
&
ptpPortDS
->
timers
.
sync
,
"Sync"
);
...
...
PTPWRd/ptpd.h
View file @
272df604
...
@@ -249,4 +249,8 @@ static inline unsigned long pow_2(int exp)
...
@@ -249,4 +249,8 @@ static inline unsigned long pow_2(int exp)
}
}
void
singlePortLoop
(
RunTimeOpts
*
rtOpts
,
PtpPortDS
*
ptpPortDS
,
int
portIndex
);
void
sharedPortsLoop
(
PtpPortDS
*
ptpPortDS
);
#endif
/*PTPD_H_*/
#endif
/*PTPD_H_*/
libposix/ptpd-wrappers.h
View file @
272df604
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <stdio.h>
#include <inttypes.h>
#include <inttypes.h>
#include <unistd.h>
/*
/*
* This is a freestanding compilation, and we may miss some data
* This is a freestanding compilation, and we may miss some data
* structures. For example misses <stdint.h>. Most likely it's
* structures. For example misses <stdint.h>. Most likely it's
...
@@ -55,7 +56,7 @@ static inline void ptpd_handle_wripc() {}
...
@@ -55,7 +56,7 @@ static inline void ptpd_handle_wripc() {}
#define printf(x, ...) mprintf(x, ##__VA_ARGS__)
#define printf(x, ...) mprintf(x, ##__VA_ARGS__)
#define fprintf(file, x, ...) mprintf(x, ##__VA_ARGS__)
#define fprintf(file, x, ...) mprintf(x, ##__VA_ARGS__)
#define sprintf(buf, ...) msprintf(buf, __VA_ARGS__)
//
#define sprintf(buf, ...) msprintf(buf, __VA_ARGS__)
//#define DBG(x, ...) mprintf(x, ##__VA_ARGS__)
//#define DBG(x, ...) mprintf(x, ##__VA_ARGS__)
...
...
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