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
6e8e8e77
Commit
6e8e8e77
authored
Apr 14, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proto-ext-whiterabbit: fix build of the abscal
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
eff943d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
state-wr-abscal.c
proto-ext-whiterabbit/state-wr-abscal.c
+2
-3
state-wr-link-on.c
proto-ext-whiterabbit/state-wr-link-on.c
+1
-0
No files found.
proto-ext-whiterabbit/state-wr-abscal.c
View file @
6e8e8e77
...
...
@@ -27,7 +27,6 @@ static int next_pps_ms(struct pp_instance *ppi, struct pp_time *t)
int
wr_abscal
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
plen
,
int
new_state
)
{
struct
pp_time
t
;
struct
wr_dsport
*
wrp
=
WR_DSPOR
(
ppi
);
int
len
,
i
;
if
(
new_state
)
{
...
...
@@ -40,7 +39,7 @@ int wr_abscal(struct pp_instance *ppi, void *buf, int plen, int new_state)
if
(
pp_timeout
(
ppi
,
wrTmoIdx
))
{
uint64_t
secs
=
t
.
secs
;
TOPS
()
->
enable_timing_output
(
GLBS
(
ppi
),
1
);
TOPS
(
ppi
)
->
enable_timing_output
(
GLBS
(
ppi
),
1
);
/* Wait for the second to tick */
while
(
TOPS
(
ppi
)
->
get
(
ppi
,
&
t
),
t
.
secs
==
secs
)
...
...
@@ -49,7 +48,7 @@ int wr_abscal(struct pp_instance *ppi, void *buf, int plen, int new_state)
/* Send sync, no f-up -- actually we could send any frame */
TOPS
(
ppi
)
->
get
(
ppi
,
&
t
);
len
=
msg_pack_sync
(
ppi
,
&
t
);
__send_and_log
(
ppi
,
len
,
PP_NP_EVT
);
__send_and_log
(
ppi
,
len
,
PP_NP_EVT
,
PPM_SYNC_FMT
);
/* And again next second */
pp_timeout_set
(
ppi
,
wrTmoIdx
,
next_pps_ms
(
ppi
,
&
t
)
-
10
);
...
...
proto-ext-whiterabbit/state-wr-link-on.c
View file @
6e8e8e77
...
...
@@ -27,6 +27,7 @@ int wr_link_on(struct pp_instance *ppi, void *buf, int len, int new_state)
wrp
->
next_state
=
WRS_IDLE
;
#ifdef CONFIG_ABSCAL
#include "wrc_ptp.h"
/*
* absolute calibration only exists in arch-wrpc, so far, but
* we can't include wrpc headers, not available in wrs builds
...
...
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