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
50
Issues
50
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
2bdcc35c
Commit
2bdcc35c
authored
Mar 01, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
servo: make static functions static; remove from ppsi.h
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
70423873
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
ppsi.h
include/ppsi/ppsi.h
+0
-8
servo.c
proto-standard/servo.c
+10
-0
No files found.
include/ppsi/ppsi.h
View file @
2bdcc35c
...
...
@@ -380,14 +380,6 @@ extern void pp_servo_got_resp(struct pp_instance *ppi); /* got all t1..t4 */
extern
void
pp_servo_got_psync
(
struct
pp_instance
*
ppi
);
/* got t1 and t2 */
extern
void
pp_servo_got_presp
(
struct
pp_instance
*
ppi
);
/* got all t3..t6 */
extern
void
pp_servo_mpd_fltr
(
struct
pp_instance
*
ppi
,
struct
pp_avg_fltr
*
mpd_fltr
,
TimeInternal
*
mpd
);
extern
void
pp_servo_offset_master
(
struct
pp_instance
*
ppi
,
TimeInternal
*
mpd
,
TimeInternal
*
ofm
,
TimeInternal
*
m_to_s_dly
);
extern
Integer32
pp_servo_pi_controller
(
struct
pp_instance
*
ppi
,
TimeInternal
*
ofm
);
/* bmc.c */
extern
void
m1
(
struct
pp_instance
*
ppi
);
extern
int
bmc
(
struct
pp_instance
*
ppi
);
...
...
proto-standard/servo.c
View file @
2bdcc35c
...
...
@@ -8,6 +8,13 @@
#include <ppsi/ppsi.h>
static
void
pp_servo_mpd_fltr
(
struct
pp_instance
*
,
struct
pp_avg_fltr
*
,
TimeInternal
*
);
static
void
pp_servo_offset_master
(
struct
pp_instance
*
,
TimeInternal
*
,
TimeInternal
*
,
TimeInternal
*
);
static
Integer32
pp_servo_pi_controller
(
struct
pp_instance
*
,
TimeInternal
*
);
void
pp_servo_init
(
struct
pp_instance
*
ppi
)
{
int
d
;
...
...
@@ -235,6 +242,7 @@ void pp_servo_got_presp(struct pp_instance *ppi)
pp_servo_mpd_fltr
(
ppi
,
mpd_fltr
,
mpd
);
}
static
void
pp_servo_mpd_fltr
(
struct
pp_instance
*
ppi
,
struct
pp_avg_fltr
*
mpd_fltr
,
TimeInternal
*
mpd
)
{
...
...
@@ -291,6 +299,7 @@ void pp_servo_mpd_fltr(struct pp_instance *ppi, struct pp_avg_fltr *mpd_fltr,
(
int
)
mpd_fltr
->
s_exp
,
mpd
->
nanoseconds
);
}
static
void
pp_servo_offset_master
(
struct
pp_instance
*
ppi
,
TimeInternal
*
mpd
,
TimeInternal
*
ofm
,
TimeInternal
*
m_to_s_dly
)
{
...
...
@@ -340,6 +349,7 @@ void pp_servo_offset_master(struct pp_instance *ppi, TimeInternal * mpd,
}
}
static
Integer32
pp_servo_pi_controller
(
struct
pp_instance
*
ppi
,
TimeInternal
*
ofm
)
{
long
long
I_term
;
...
...
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