Commit d456d2fd authored by baujc's avatar baujc Committed by [ACC] Jean-Claude BAU

Add possibility to remove CUSTOM profile

The custom profile is usefull for the White Rabbit switch integration
tests. It is now possible to remove it for other targets where the
memory space is critical (nodes)
parent 88d2f789
......@@ -101,6 +101,22 @@ menu "PTP Protocol Options"
endmenu
menu "Profiles"
config PROFILE_WR
bool "WhiteRabbit"
default y if ARCH_WRS
config PROFILE_HA
bool "HighAccuracy"
default y if ARCH_WRS || ARCH_WRPC
config PROFILE_CUSTOM
bool "Custom"
default y if ARCH_WRS
endmenu
config ASSERT
bool "Build assertion checks in the code"
default n
......@@ -110,17 +126,9 @@ config ASSERT
error message every second. OTOH, panic() is always built,
with no Kconfig -- and it does the same, unconditionally.
config PROFILE_WR
bool
default y if ARCH_WRS
config PROFILE_HA
bool
default y if ARCH_WRS || ARCH_WRPC
config PROFILE_PTP
bool
default y if !(PROFILE_WR || PROFILE_HA)
default y
config EXT_WR
bool
......@@ -132,7 +140,7 @@ config EXT_L1SYNC
config EXT_NONE
bool
default y if PROFILE_PTP
default y if !(PROFILE_WR || PROFILE_HA || PROFILE_CUSTOM)
config CROSS_COMPILE
string "Cross compiler prefix"
......
......@@ -325,6 +325,7 @@ int main(int argc, char **argv)
/* Do not take care of L1SYNC */
enable_asymmetryCorrection(ppi,ppi->cfg.asymmetryCorrectionEnable);
break;
#if CONFIG_PROFILE_CUSTOM == 1
case PPSI_PROFILE_CUSTOM :
#if CONFIG_EXT_L1SYNC
if (ppi->cfg.l1SyncEnabled ) {
......@@ -342,6 +343,7 @@ int main(int argc, char **argv)
#endif
enable_asymmetryCorrection(ppi,ppi->cfg.asymmetryCorrectionEnable);
break;
#endif
}
/* Parameters profile independent */
ppi->timestampCorrectionPortDS.egressLatency=picos_to_interval(ppi->cfg.egressLatency_ps);
......
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