Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
e842d702
Commit
e842d702
authored
12 years ago
by
Grzegorz Daniluk
Browse files
Options
Downloads
Patches
Plain Diff
wrc_ptp: reset wr servo when changing mode (master/slave)
parent
1a88e745
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrc_ptp.c
+3
-1
3 additions, 1 deletion
wrc_ptp.c
with
3 additions
and
1 deletion
wrc_ptp.c
+
3
−
1
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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment