Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
ptp-noposix
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
ppsi
ptp-noposix
Commits
b1c90ee8
Commit
b1c90ee8
authored
Jul 25, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of ohwr.org:white-rabbit/ppsi/ptp-noposix
parents
e0720653
256f803b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
freestanding-wrapper.c
libposix/freestanding-wrapper.c
+7
-5
No files found.
libposix/freestanding-wrapper.c
View file @
b1c90ee8
...
...
@@ -10,6 +10,7 @@
#include "ptpd_netif.h"
#include "../PTPWRd/ptpd.h"
#include "../PTPWRd/datatypes.h"
#include "wrc_ptp.h"
int
usleep
(
useconds_t
useconds
)
{
...
...
@@ -86,11 +87,12 @@ extern int32_t sfp_alpha;
int
halexp_get_port_state
(
hexp_port_state_t
*
state
,
const
char
*
port_name
)
{
state
->
valid
=
1
;
#ifdef WRPC_MASTER
state
->
mode
=
HEXP_PORT_MODE_WR_MASTER
;
#else
state
->
mode
=
HEXP_PORT_MODE_WR_SLAVE
;
#endif
if
(
wrc_ptp_get_mode
()
==
WRC_MODE_SLAVE
)
state
->
mode
=
HEXP_PORT_MODE_WR_SLAVE
;
else
state
->
mode
=
HEXP_PORT_MODE_WR_MASTER
;
ep_get_deltas
(
&
state
->
delta_tx
,
&
state
->
delta_rx
);
read_phase_val
(
state
);
state
->
up
=
ep_link_up
(
NULL
);
...
...
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