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
d5846ed6
Commit
d5846ed6
authored
Jul 01, 2015
by
Cesar Prados
Committed by
Alessandro Rubini
May 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdelay/startup: initializes the link delay mechanism defined in compilation arch unix/wrs
Signed-off-by:
C.Prados
<
c.prados@gsi.de
>
parent
43d6378f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
unix-startup.c
arch-unix/unix-startup.c
+5
-0
wrs-startup.c
arch-wrs/wrs-startup.c
+5
-0
constants.h
include/ppsi/constants.h
+3
-0
No files found.
arch-unix/unix-startup.c
View file @
d5846ed6
...
...
@@ -50,6 +50,11 @@ int main(int argc, char **argv)
ppg
->
timePropertiesDS
=
&
timePropertiesDS
;
ppg
->
servo
=
&
servo
;
ppg
->
rt_opts
=
&
__pp_default_rt_opts
;
#ifdef CONFIG_P2P
ppg
->
delay_mech
=
PP_P2P_MECH
;
#else
ppg
->
delay_mech
=
PP_E2E_MECH
;
#endif
/* We are hosted, so we can allocate */
ppg
->
max_links
=
PP_MAX_LINKS
;
...
...
arch-wrs/wrs-startup.c
View file @
d5846ed6
...
...
@@ -152,6 +152,11 @@ int main(int argc, char **argv)
sizeof
(
*
ppg
->
timePropertiesDS
));
ppg
->
servo
=
alloc_fn
(
ppsi_head
,
sizeof
(
*
ppg
->
servo
));
ppg
->
rt_opts
=
&
__pp_default_rt_opts
;
#ifdef CONFIG_P2P
ppg
->
delay_mech
=
PP_P2P_MECH
;
#else
ppg
->
delay_mech
=
PP_E2E_MECH
;
#endif
ppg
->
max_links
=
PP_MAX_LINKS
;
ppg
->
global_ext_data
=
alloc_fn
(
ppsi_head
,
...
...
include/ppsi/constants.h
View file @
d5846ed6
...
...
@@ -101,6 +101,9 @@ enum pp_timeouts {
#define PP_MCAST_MACADDRESS "\x01\x1B\x19\x00\x00\x00"
#define PP_PDELAY_MACADDRESS "\x01\x80\xC2\x00\x00\x0E"
#define PP_E2E_MECH 0
#define PP_P2P_MECH 1
#include <arch/constants.h>
/* architectures may override the defaults */
#endif
/* __PPSI_CONSTANTS_H__ */
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