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
0edaa7f3
Commit
0edaa7f3
authored
Mar 28, 2012
by
Grzegorz Daniluk
Committed by
Alessandro Rubini
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec: rx timestamps obtainted from minic_rx_frame(), no phase measurement nor linearization
parent
57ed524b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
spec-socket.c
arch-spec/spec-socket.c
+8
-2
No files found.
arch-spec/spec-socket.c
View file @
0edaa7f3
...
...
@@ -31,12 +31,18 @@ int spec_recv_packet(struct pp_instance *ppi, void *pkt, int len,
TimeInternal
*
t
)
{
static
int
led
;
struct
hw_timestamp
hwts
;
int
got
;
led
^=
1
;
/* blink one led at each rx event */
gpio_out
(
GPIO_PIN_LED_LINK
,
led
);
got
=
minic_rx_frame
(
pkt
,
pkt
+
ETH_HEADER_SIZE
,
len
,
NULL
);
pp_printf
(
"%s: got=%d
\n
"
,
__FUNCTION__
,
got
);
got
=
minic_rx_frame
(
pkt
,
pkt
+
ETH_HEADER_SIZE
,
len
,
&
hwts
);
//add phase value and linearize function for WR support
t
->
seconds
=
hwts
.
utc
;
t
->
nanoseconds
=
hwts
.
nsec
;
pp_printf
(
"%s: got=%d, sec=%d, nsec=%d
\n
"
,
__FUNCTION__
,
got
,
t
->
seconds
,
t
->
nanoseconds
);
return
got
;
}
...
...
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