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
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
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
12190880
Commit
12190880
authored
12 years ago
by
Wesley W. Terpstra
Committed by
Alessandro Rubini
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
pps: do not blink PPS when a slave has no link
parent
ced3db1b
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dev/pps_gen.c
+1
-1
1 addition, 1 deletion
dev/pps_gen.c
wrc_main.c
+3
-1
3 additions, 1 deletion
wrc_main.c
with
4 additions
and
2 deletions
dev/pps_gen.c
+
1
−
1
View file @
12190880
...
...
@@ -43,7 +43,7 @@ void shw_pps_gen_init()
ppsg_write
(
CR
,
cr
|
PPSG_CR_CNT_SET
);
ppsg_write
(
CR
,
cr
);
ppsg_write
(
ESCR
,
0
x6
);
/*
en
able PPS output */
ppsg_write
(
ESCR
,
0
);
/*
dis
able PPS output */
}
/* Adjusts the nanosecond (refclk cycle) counter by atomically adding (how_much) cycles. */
...
...
This diff is collapsed.
Click to expand it.
wrc_main.c
+
3
−
1
View file @
12190880
...
...
@@ -258,8 +258,10 @@ int main(void)
break
;
case
LINK_WENT_DOWN
:
if
(
wrc_ptp_get_mode
()
==
WRC_MODE_SLAVE
)
if
(
wrc_ptp_get_mode
()
==
WRC_MODE_SLAVE
)
{
spll_init
(
SPLL_MODE_FREE_RUNNING_MASTER
,
0
,
1
);
shw_pps_gen_enable_output
(
0
);
}
break
;
}
...
...
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