Commit d5846ed6 authored by Cesar Prados's avatar Cesar Prados Committed by Alessandro Rubini

pdelay/startup: initializes the link delay mechanism defined in compilation arch unix/wrs

Signed-off-by: Cesar Prados's avatarC.Prados <c.prados@gsi.de>
parent 43d6378f
......@@ -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;
......
......@@ -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,
......
......@@ -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__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment