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
a1d8e4b3
Commit
a1d8e4b3
authored
Jun 12, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PTPWRd/protocol.c: reset servo on initialization of a slave port
parent
0c9dc6de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
protocol.c
PTPWRd/protocol.c
+4
-0
No files found.
PTPWRd/protocol.c
View file @
a1d8e4b3
...
@@ -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"
);
...
...
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