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
d943165d
Commit
d943165d
authored
Jun 12, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed references to UTC timescale in HAL/ptpnetif files
parent
d14c03a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
ptpd_netif.c
libptpnetif/ptpd_netif.c
+5
-5
hal_exports.h
wrsw_hal/hal_exports.h
+3
-6
No files found.
libptpnetif/ptpd_netif.c
View file @
d943165d
...
...
@@ -705,12 +705,12 @@ int ptpd_netif_adjust_counters(int64_t adjust_utc, int32_t adjust_nsec)
if
(
adjust_utc
)
{
cmd
=
HEXP_PPSG_CMD_ADJUST_
UT
C
;
p
.
adjust_
ut
c
=
adjust_utc
;
cmd
=
HEXP_PPSG_CMD_ADJUST_
SE
C
;
p
.
adjust_
se
c
=
adjust_utc
;
}
else
{
cmd
=
HEXP_PPSG_CMD_ADJUST_NSEC
;
p
.
adjust_nsec
=
adjust_nsec
;
}
cmd
=
HEXP_PPSG_CMD_ADJUST_NSEC
;
p
.
adjust_nsec
=
adjust_nsec
;
}
if
(
!
halexp_pps_cmd
(
cmd
,
&
p
))
return
PTPD_NETIF_OK
;
...
...
wrsw_hal/hal_exports.h
View file @
d943165d
...
...
@@ -35,7 +35,7 @@
#define HEXP_PPSG_CMD_GET 0
#define HEXP_PPSG_CMD_ADJUST_PHASE 1
#define HEXP_PPSG_CMD_ADJUST_
UT
C 2
#define HEXP_PPSG_CMD_ADJUST_
SE
C 2
#define HEXP_PPSG_CMD_ADJUST_NSEC 3
#define HEXP_PPSG_CMD_POLL 4
#define HEXP_PPSG_CMD_SET_VALID 5
...
...
@@ -43,9 +43,6 @@
#define HEXP_ON 1
#define HEXP_OFF 0
#define HEXP_HPLL 0
#define HEXP_DMPLL 1
#define HEXP_FREQ 0
#define HEXP_PHASE 1
...
...
@@ -72,10 +69,10 @@ typedef struct {
uint32_t
current_phase_shift
;
int32_t
adjust_phase_shift
;
int64_t
adjust_
ut
c
;
int64_t
adjust_
se
c
;
int32_t
adjust_nsec
;
uint64_t
current_
ut
c
;
uint64_t
current_
se
c
;
uint32_t
current_nsec
;
}
hexp_pps_params_t
;
...
...
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