Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wrpc-sw
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
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
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
wr-cores
wrpc-sw
Commits
ef4fc509
Commit
ef4fc509
authored
12 years ago
by
Aurelio Colosimo
Committed by
Alessandro Rubini
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wrc_ptp_ppsi.c: call ptp open/close functions at start/stop commands
Signed-off-by:
Aurelio Colosimo
<
aurelio@aureliocolosimo.it
>
parent
29d91ca1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrc_ptp_ppsi.c
+10
-0
10 additions, 0 deletions
wrc_ptp_ppsi.c
with
10 additions
and
0 deletions
wrc_ptp_ppsi.c
+
10
−
0
View file @
ef4fc509
...
...
@@ -135,6 +135,15 @@ int wrc_ptp_get_mode()
int
wrc_ptp_start
()
{
struct
pp_instance
*
ppi
=
&
ppi_static
;
pp_open_instance
(
ppi
,
0
/* no opts */
);
OPTS
(
ppi
)
->
e2e_mode
=
1
;
/* Call the state machine. Being it in "Initializing" state, make
* ppsi initialize what is necessary */
delay_ms
=
pp_state_machine
(
ppi
,
NULL
,
0
);
start_tics
=
timer_get_tics
();
DSPOR
(
ppi
)
->
linkUP
=
FALSE
;
wr_servo_reset
();
...
...
@@ -146,6 +155,7 @@ int wrc_ptp_stop()
{
ptp_enabled
=
0
;
wr_servo_reset
();
pp_close_instance
(
&
ppi_static
);
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