Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
64bcec12
Commit
64bcec12
authored
Oct 27, 2016
by
Alessandro Rubini
Committed by
Adam Wujek
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: added wrc_ptp_run()
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
eb89f037
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+12
-0
wrpc.h
arch-wrpc/wrpc.h
+1
-0
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
64bcec12
...
...
@@ -241,6 +241,18 @@ int wrc_ptp_stop()
return
0
;
}
int
wrc_ptp_run
(
int
start_stop_query
)
{
switch
(
start_stop_query
)
{
case
0
:
return
wrc_ptp_stop
();
case
1
:
return
wrc_ptp_start
();
default:
return
ptp_enabled
;
}
}
/* this returns whether or not the function did any work */
int
wrc_ptp_update
()
{
...
...
arch-wrpc/wrpc.h
View file @
64bcec12
...
...
@@ -28,6 +28,7 @@ void wrc_ptp_set_sync_mech(int mech);
int
wrc_ptp_get_sync_mech
(
void
);
int
wrc_ptp_start
(
void
);
int
wrc_ptp_stop
(
void
);
int
wrc_ptp_run
(
int
start_stop_qry
);
int
wrc_ptp_update
(
void
);
/* End of wrc-ptp.h */
...
...
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