Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PTP noposix stack
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
PTP noposix stack
Commits
d0923675
Commit
d0923675
authored
Oct 30, 2012
by
Aurelio Colosimo
Committed by
Alessandro Rubini
Feb 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pps_gen_ functions renamed to shw_pps_gen_
Signed-off-by:
Aurelio Colosimo
<
aurelio@aureliocolosimo.it
>
parent
4864f12f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
wr_servo.c
PTPWRd/dep/wr_servo.c
+2
-2
freestanding-wrapper.c
libposix/freestanding-wrapper.c
+4
-4
No files found.
PTPWRd/dep/wr_servo.c
View file @
d0923675
...
...
@@ -164,7 +164,7 @@ static int got_sync = 0;
void
wr_servo_reset
()
{
// pps_gen_enable_output(0); /* fixme: unportable */
//
shw_
pps_gen_enable_output(0); /* fixme: unportable */
cur_servo_state
.
valid
=
0
;
servo_state_valid
=
0
;
// ptpd_netif_enable_timing_output(0);
...
...
@@ -420,7 +420,7 @@ int wr_servo_update(PtpPortDS *clock)
if
(
tracking_enabled
)
{
// pps_gen_enable_output(1);
//
shw_
pps_gen_enable_output(1);
// just follow the changes of deltaMS
s
->
cur_setpoint
+=
(
s
->
delta_ms
-
s
->
delta_ms_prev
);
...
...
libposix/freestanding-wrapper.c
View file @
d0923675
...
...
@@ -183,21 +183,21 @@ int ptpd_netif_read_calibration_data(const char *ifaceName, uint64_t *deltaTx,
int
ptpd_netif_enable_timing_output
(
int
enable
)
{
pps_gen_enable_output
(
enable
);
shw_
pps_gen_enable_output
(
enable
);
return
PTPD_NETIF_OK
;
}
int
ptpd_netif_adjust_in_progress
()
{
return
pps_gen_busy
()
||
spll_shifter_busy
(
0
);
return
shw_
pps_gen_busy
()
||
spll_shifter_busy
(
0
);
}
int
ptpd_netif_adjust_counters
(
int64_t
adjust_sec
,
int32_t
adjust_nsec
)
{
if
(
adjust_sec
)
pps_gen_adjust
(
PPSG_ADJUST_SEC
,
adjust_sec
);
shw_
pps_gen_adjust
(
PPSG_ADJUST_SEC
,
adjust_sec
);
if
(
adjust_nsec
)
pps_gen_adjust
(
PPSG_ADJUST_NSEC
,
adjust_nsec
);
shw_
pps_gen_adjust
(
PPSG_ADJUST_NSEC
,
adjust_nsec
);
return
0
;
}
...
...
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