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
196097cd
Commit
196097cd
authored
Mar 18, 2021
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: use new endpoint API also for mode abscal
parent
58d7be56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
state-wr-link-on.c
proto-ext-whiterabbit/state-wr-link-on.c
+3
-2
No files found.
proto-ext-whiterabbit/state-wr-link-on.c
View file @
196097cd
...
...
@@ -6,8 +6,10 @@
* Released to the public domain
*/
#include <dev/endpoint.h>
#include <ppsi/ppsi.h>
#include "wr-api.h"
#include "board.h"
/*
* This is the last WR state: ack the other party and go master or slave.
...
...
@@ -40,14 +42,13 @@ int wr_link_on(struct pp_instance *ppi, unsigned char *pkt, int plen)
* we can't include wrpc headers, not available in wrs builds
*/
extern
int
ptp_mode
;
extern
int
ep_get_bitslide
(
void
);
if
(
ptp_mode
==
4
/* WRC_MODE_ABSCAL */
)
{
ppi
->
next_state
=
WRS_ABSCAL
;
/* print header for the serial port stream of stamps */
pp_printf
(
"### t4.phase is already corrected for bitslide
\n
"
);
pp_printf
(
"t1: t4: "
"bitslide: %d
\n
"
,
ep_get_bitslide
());
"bitslide: %d
\n
"
,
ep_get_bitslide
(
&
wrc_endpoint_dev
));
pp_printf
(
" sec. ns.pha sec. ns.pha
\n
"
);
}
#endif
...
...
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