Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
28
Issues
28
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
e842d702
Commit
e842d702
authored
Jul 20, 2012
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_ptp: reset wr servo when changing mode (master/slave)
parent
1a88e745
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wrc_ptp.c
wrc_ptp.c
+3
-1
No files found.
wrc_ptp.c
View file @
e842d702
...
...
@@ -80,7 +80,7 @@ int wrc_ptp_set_mode(int mode)
ptp_mode
=
0
;
ptp_enabled
=
0
;
wrc_ptp_stop
()
;
switch
(
mode
)
{
...
...
@@ -147,6 +147,7 @@ int wrc_ptp_get_mode()
int
wrc_ptp_start
()
{
ptpPortDS
->
linkUP
=
FALSE
;
wr_servo_reset
();
initDataClock
(
&
rtOpts
,
&
ptpClockDS
);
ptp_enabled
=
1
;
...
...
@@ -156,6 +157,7 @@ int wrc_ptp_start()
int
wrc_ptp_stop
()
{
ptp_enabled
=
0
;
wr_servo_reset
();
return
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